[ekg2-commit] r3893 - in trunk: . plugins/feed plugins/rc: trunk/configure.ac trunk/plugins/feed/nntp.c trunk/plugins/rc/main.c
SVN commit
svn w toxygen.net
Wto, 11 Mar 2008, 17:10:29 CET
Author: peres
Date: 2008-03-11 17:10:29 +0100 (Tue, 11 Mar 2008)
New Revision: 3893
Modified:
trunk/configure.ac
trunk/plugins/feed/nntp.c
trunk/plugins/rc/main.c
Log:
socklen_t is in sys/types.h on OpenBSD.
Yes, *BSD is just stupid.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2008-03-10 21:02:44 UTC (rev 3892)
+++ trunk/configure.ac 2008-03-11 16:10:29 UTC (rev 3893)
@@ -99,7 +99,10 @@
#include <sys/user.h>
])
+dnl Maybe we should rather check both includes alone, and then define which one we should use
+dnl and blah blah blah, but I think we'll always include both files
AC_CHECK_TYPE(socklen_t,[AC_DEFINE(HAVE_SOCKLEN_T, 1, [define if you've got socklen_t])],,[
+#include <sys/types.h>
#include <sys/socket.h>
])
Modified: trunk/plugins/feed/nntp.c
===================================================================
--- trunk/plugins/feed/nntp.c 2008-03-10 21:02:44 UTC (rev 3892)
+++ trunk/plugins/feed/nntp.c 2008-03-11 16:10:29 UTC (rev 3893)
@@ -17,6 +17,7 @@
#include "ekg2-config.h"
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Modified: trunk/plugins/rc/main.c
===================================================================
--- trunk/plugins/rc/main.c 2008-03-10 21:02:44 UTC (rev 3892)
+++ trunk/plugins/rc/main.c 2008-03-11 16:10:29 UTC (rev 3893)
@@ -2,7 +2,9 @@
#include <ekg/win32.h>
+#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/socket.h>
#include <stdlib.h>
#include <unistd.h>
Więcej informacji o liście dyskusyjnej ekg2-commit