aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-05-01 20:36:21 +0200
committerKay Sievers <kay.sievers@suse.de>2006-05-01 20:36:21 +0200
commit9571122e00f54b5d6e5accda4c431ac6ae5c4847 (patch)
treeeead6adf7ea0ffb0ff4b1ad1d8425ae824124dd8
parent5263fb3464fdb43b1ca0eb6e7b71eb4ff91c6a17 (diff)
downloadudev-9571122e00f54b5d6e5accda4c431ac6ae5c4847.tar.gz
fix offsetof() build issue with recent glibc
-rw-r--r--udevcontrol.c9
-rw-r--r--udevmonitor.c1
-rw-r--r--udevsend.c1
3 files changed, 5 insertions, 6 deletions
diff --git a/udevcontrol.c b/udevcontrol.c
index 6d91adc1..8add09e0 100644
--- a/udevcontrol.c
+++ b/udevcontrol.c
@@ -18,10 +18,6 @@
*
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/wait.h>
-#include <sys/un.h>
#include <time.h>
#include <errno.h>
#include <stdio.h>
@@ -29,7 +25,10 @@
#include <stddef.h>
#include <string.h>
#include <unistd.h>
-#include <linux/stddef.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/wait.h>
+#include <sys/un.h>
#include "udev.h"
#include "udevd.h"
diff --git a/udevmonitor.c b/udevmonitor.c
index 80c49753..fb1f42cc 100644
--- a/udevmonitor.c
+++ b/udevmonitor.c
@@ -21,6 +21,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/udevsend.c b/udevsend.c
index 1b9860ba..9f5059a4 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -30,7 +30,6 @@
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/un.h>
-#include <linux/stddef.h>
#include "udev.h"
#include "udevd.h"