Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From ebc3aee7d7bf55bdbd20a82e104720de2ef98532 Mon Sep 17 00:00:00 2001
- From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
- Date: Fri, 11 Jul 2014 08:55:59 +0200
- Subject: [PATCH 1/2] Add libnetwork to the tested libs for socket()
- Haiku requires this.
- ---
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/configure.ac b/configure.ac
- index 3a9885e..e26c137 100644
- --- a/configure.ac
- +++ b/configure.ac
- @@ -52,7 +52,7 @@ dnl
- dnl Check for libraries
- dnl
- -AC_SEARCH_LIBS([socket], [socket])
- +AC_SEARCH_LIBS([socket], [network socket])
- AC_SEARCH_LIBS([gethostbyname], [nsl])
- --
- 1.8.3.4
- From 3f9d42afbba34af70ef2208fc6f0c1b3f47b5fde Mon Sep 17 00:00:00 2001
- From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
- Date: Fri, 11 Jul 2014 08:56:49 +0200
- Subject: [PATCH 2/2] POSIX says fd_set is defined by <sys/select.h>
- Haiku requires this.
- cf.
- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/select.h.html
- Also guard sys/select.h by ifndef WIN32 as Mingw32 doesn't provide it.
- We'll avoid a configure check just for this.
- ---
- src/socket.c | 1 +
- src/sync.c | 3 +++
- 2 files changed, 4 insertions(+)
- diff --git a/src/socket.c b/src/socket.c
- index f76510c..2aa5f7f 100644
- --- a/src/socket.c
- +++ b/src/socket.c
- @@ -43,6 +43,7 @@
- #else
- # include <netinet/in.h>
- # include <arpa/inet.h>
- +# include <sys/select.h>
- # include <sys/socket.h>
- # include <netdb.h>
- # include <sys/un.h>
- diff --git a/src/sync.c b/src/sync.c
- index 43cfe50..0a6c9d3 100644
- --- a/src/sync.c
- +++ b/src/sync.c
- @@ -33,6 +33,9 @@
- #include <assert.h>
- #include <stdlib.h>
- #include <stdio.h>
- +#ifndef WIN32
- +#include <sys/select.h>
- +#endif
- #include <fcntl.h>
- #include <unistd.h>
- --
- 1.8.3.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement