]> git.meshlink.io Git - catta/commitdiff
freebsd: compatibility fix for looking for CMSG_DATA
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Apr 2009 19:35:21 +0000 (21:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Apr 2009 19:35:21 +0000 (21:35 +0200)
Patch contributed by Sven Wegener

configure.ac

index cb6e151b123bec4f19dec5d88c97d127eb247b26..9ca380c78e53551d12d74021c335e4936b304df6 100644 (file)
@@ -350,7 +350,7 @@ AC_HEADER_SYS_WAIT
  # Solaris stuff
  AC_SEARCH_LIBS([inet_ntop],[nsl])
  AC_SEARCH_LIBS([recv],[socket])
- AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__")
+ AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__", [[#include <sys/socket.h>]])
 
 # Checks for library functions.
 AC_FUNC_MEMCMP