configure script now checks availability of the alarm() function
This commit is contained in:
105
lib/setup.h
105
lib/setup.h
@@ -338,76 +338,66 @@
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#if !defined(__CYGWIN__)
|
||||
#define sclose(x) closesocket(x)
|
||||
# if !defined(__CYGWIN__)
|
||||
# define sclose(x) closesocket(x)
|
||||
# else
|
||||
# define sclose(x) close(x)
|
||||
# endif
|
||||
|
||||
#undef HAVE_ALARM
|
||||
#else
|
||||
/* gcc-for-win is still good :) */
|
||||
#define sclose(x) close(x)
|
||||
#define HAVE_ALARM
|
||||
#endif /* !GNU or mingw */
|
||||
|
||||
#define DIR_CHAR "\\"
|
||||
#define DOT_CHAR "_"
|
||||
# define DIR_CHAR "\\"
|
||||
# define DOT_CHAR "_"
|
||||
|
||||
#else /* WIN32 */
|
||||
|
||||
#ifdef MSDOS /* Watt-32 */
|
||||
#include <sys/ioctl.h>
|
||||
#define sclose(x) close_s(x)
|
||||
#define select(n,r,w,x,t) select_s(n,r,w,x,t)
|
||||
#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
|
||||
#define IOCTL_3_ARGS
|
||||
#include <tcp.h>
|
||||
#ifdef word
|
||||
#undef word
|
||||
#endif
|
||||
#ifdef byte
|
||||
#undef byte
|
||||
#endif
|
||||
# ifdef MSDOS /* Watt-32 */
|
||||
|
||||
#else /* MSDOS */
|
||||
# include <sys/ioctl.h>
|
||||
# define sclose(x) close_s(x)
|
||||
# define select(n,r,w,x,t) select_s(n,r,w,x,t)
|
||||
# define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
|
||||
# define IOCTL_3_ARGS
|
||||
# include <tcp.h>
|
||||
# ifdef word
|
||||
# undef word
|
||||
# endif
|
||||
# ifdef byte
|
||||
# undef byte
|
||||
# endif
|
||||
|
||||
#ifdef __BEOS__
|
||||
#define sclose(x) closesocket(x)
|
||||
#else /* __BEOS__ */
|
||||
#define sclose(x) close(x)
|
||||
#endif /* __BEOS__ */
|
||||
# else /* MSDOS */
|
||||
|
||||
#define HAVE_ALARM
|
||||
# ifdef __BEOS__
|
||||
# define sclose(x) closesocket(x)
|
||||
# else /* __BEOS__ */
|
||||
# define sclose(x) close(x)
|
||||
# endif /* __BEOS__ */
|
||||
|
||||
#endif /* MSDOS */
|
||||
# endif /* MSDOS */
|
||||
|
||||
#ifdef _AMIGASF
|
||||
#undef HAVE_ALARM
|
||||
#undef sclose
|
||||
#define sclose(x) CloseSocket(x)
|
||||
#endif
|
||||
# ifdef _AMIGASF
|
||||
# undef sclose
|
||||
# define sclose(x) CloseSocket(x)
|
||||
# endif
|
||||
|
||||
#ifdef __minix
|
||||
/* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
|
||||
extern char * strtok_r(char *s, const char *delim, char **last);
|
||||
extern struct tm * gmtime_r(const time_t * const timep, struct tm *tmp);
|
||||
#endif
|
||||
# ifdef __minix
|
||||
/* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
|
||||
extern char * strtok_r(char *s, const char *delim, char **last);
|
||||
extern struct tm * gmtime_r(const time_t * const timep, struct tm *tmp);
|
||||
# endif
|
||||
|
||||
#ifdef __SYMBIAN32__
|
||||
#undef HAVE_ALARM
|
||||
#endif
|
||||
# define DIR_CHAR "/"
|
||||
# ifndef DOT_CHAR
|
||||
# define DOT_CHAR "."
|
||||
# endif
|
||||
|
||||
#define DIR_CHAR "/"
|
||||
#ifndef DOT_CHAR
|
||||
#define DOT_CHAR "."
|
||||
#endif
|
||||
# ifdef MSDOS
|
||||
# undef DOT_CHAR
|
||||
# define DOT_CHAR "_"
|
||||
# endif
|
||||
|
||||
#ifdef MSDOS
|
||||
#undef DOT_CHAR
|
||||
#define DOT_CHAR "_"
|
||||
#endif
|
||||
|
||||
#ifndef fileno /* sunos 4 have this as a macro! */
|
||||
int fileno( FILE *stream);
|
||||
#endif
|
||||
# ifndef fileno /* sunos 4 have this as a macro! */
|
||||
int fileno( FILE *stream);
|
||||
# endif
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
@@ -450,7 +440,6 @@ int netware_init(void);
|
||||
#include <sys/bsdskt.h>
|
||||
#include <sys/timeval.h>
|
||||
#endif
|
||||
#undef HAVE_ALARM
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBIDN) && defined(HAVE_TLD_H)
|
||||
|
||||
Reference in New Issue
Block a user