Code

email plugin: Include <sys/un.h> rather than <linux/un.h>.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 10 May 2007 07:50:32 +0000 (09:50 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 10 May 2007 07:50:32 +0000 (09:50 +0200)
src/email.c

index b4767554b433c83982685f684ee9232810c126c0..5d011d36c24e3fc8ba41d5f8a1946cfc490939a2 100644 (file)
 # include <pthread.h>
 #endif
 
-#if HAVE_SYS_SELECT_H
-#      include <sys/select.h>
-#endif /* HAVE_SYS_SELECT_H */
-
-#if HAVE_SYS_SOCKET_H
-#      include <sys/socket.h>
-#endif /* HAVE_SYS_SOCKET_H */
-
-/* *sigh* glibc does not define UNIX_PATH_MAX in sys/un.h ... */
-#if HAVE_LINUX_UN_H
-#      include <linux/un.h>
-#elif HAVE_SYS_UN_H
-#      include <sys/un.h>
-#endif /* HAVE_LINUX_UN_H | HAVE_SYS_UN_H */
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <sys/select.h>
 
 /* some systems (e.g. Darwin) seem to not define UNIX_PATH_MAX at all */
 #ifndef UNIX_PATH_MAX