rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku

svn:r1033
This commit is contained in:
Niels Provos 2009-01-22 02:47:35 +00:00
parent 56ea4687a5
commit a077fb8c09
7 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,5 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
# This is the point release for libevent. It shouldn't include any
# a/b/c/d/e notations.

View File

@ -2,6 +2,8 @@ dnl configure.in for libevent
dnl Dug Song <dugsong@monkey.org>
AC_INIT(event.c)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(libevent,1.4.99-trunk)
AM_CONFIG_HEADER(config.h)

View File

@ -44,7 +44,7 @@
#include <windows.h>
#else
#include <sys/socket.h>
#include <sys/signal.h>
#include <signal.h>
#include <sys/resource.h>
#endif
#include <fcntl.h>

View File

@ -43,7 +43,7 @@
#ifndef WIN32
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/signal.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#endif

View File

@ -42,7 +42,7 @@
#include <sys/queue.h>
#ifndef WIN32
#include <sys/socket.h>
#include <sys/signal.h>
#include <signal.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
@ -90,7 +90,7 @@ dns_gethostbyname_cb(int result, char type, int count, int ttl,
switch (type) {
case DNS_IPv6_AAAA: {
#if defined(HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP)
#if defined(HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
struct in6_addr *in6_addrs = addresses;
char buf[INET6_ADDRSTRLEN+1];
int i;
@ -297,7 +297,7 @@ dns_server_gethostbyname_cb(int result, char type, int count, int ttl,
break;
}
case DNS_IPv6_AAAA: {
#if defined (HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP)
#if defined (HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN)
struct in6_addr *in6_addrs = addresses;
char buf[INET6_ADDRSTRLEN+1];
if (memcmp(&in6_addrs[0].s6_addr, "abcdefghijklmnop", 16)

View File

@ -42,7 +42,7 @@
#include <sys/queue.h>
#ifndef WIN32
#include <sys/socket.h>
#include <sys/signal.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#endif

View File

@ -42,7 +42,7 @@
#include <sys/queue.h>
#ifndef WIN32
#include <sys/socket.h>
#include <sys/signal.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#endif