Rudiments
|
00001 // Copyright (c) 2002 David Muse 00002 // See the COPYING file for more information. 00003 00004 #include <rudiments/private/dll.h> 00005 #include <rudiments/private/inttypes.h> 00006 00007 #include <rudiments/resultcodes.h> 00008 00009 #include <sys/types.h> 00010 00011 #ifdef RUDIMENTS_HAS_SSL 00012 #include <openssl/ssl.h> 00013 #endif 00014 00015 #ifdef RUDIMENTS_HAVE_SYS_SOCKET_H 00016 // IRIX appears to need this but OpenBSD can't 00017 // find select() if it's still defined later 00018 #ifndef _XOPEN_SOURCE 00019 #define _XOPEN_SOURCE 00020 #define UN_XOPEN_SOURCE 00021 #endif 00022 #include <sys/socket.h> 00023 #ifdef UN_XOPEN_SOURCE 00024 #undef _XOPEN_SOURCE 00025 #endif 00026 #endif 00027 00028 // so STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO will be defined if they need 00029 // to be used by the calling program... 00030 #ifdef RUDIMENTS_HAVE_UNISTD_H 00031 #include <unistd.h> 00032 #endif 00033 #include <stdio.h>