[systemd-bugs] [Bug 67075] New: Compilation broken on linux 2.6 - unknown type name 'sa_family_t'
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jul 19 02:46:49 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=67075
Priority: medium
Bug ID: 67075
Assignee: systemd-bugs at lists.freedesktop.org
Summary: Compilation broken on linux 2.6 - unknown type name
'sa_family_t'
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: jesper.larsen at ixonos.com
Hardware: All
Status: NEW
Version: unspecified
Component: general
Product: systemd
Created attachment 82673
--> https://bugs.freedesktop.org/attachment.cgi?id=82673&action=edit
Patch
The following commit breaks compilation with Linux kernel headers from 2.6.37.
http://cgit.freedesktop.org/systemd/systemd/commit/?id=2e996f4d4b642c5682c608c9692ad2ffae398ab2
Compilation breaks with the output
In file included from src/nspawn/nspawn.c:42:0:
/usr/include/linux/netlink.h:31:2: error: unknown type name 'sa_family_t'
linux/netlink.h includes linux/socket.h for sa_family_t, but it is protected by
a #ifdef __KERNEL__
Newer kernels have fixed this issue such that linux/netlink.h is self
contained.
A work around is to include linux/netlink.h after sys/socket.h
I have attached a patch that does this, and verified that it fixes compilation
on the 2.6.37 kernel.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130719/34c5018f/attachment.html>
More information about the systemd-bugs
mailing list