Changeset 1975
- Timestamp:
- 08/12/2007 23:44:17 (3 years ago)
- Location:
- box/chris/general
- Files:
-
- 2 modified
-
configure.ac (modified) (4 diffs)
-
lib/server/Daemon.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/configure.ac
r1678 r1975 42 42 AC_DEFINE_UNQUOTED([PERL_EXECUTABLE], ["$TARGET_PERL"], 43 43 [Location of the perl executable]) 44 45 AC_CHECK_PROGS([AR], [ar], 46 [AC_MSG_ERROR([[cannot find ar executable]])]) 47 AC_CHECK_PROGS([RANLIB], [ranlib], 48 [AC_MSG_ERROR([[cannot find ranlib executable]])]) 44 49 45 50 ### Checks for libraries. … … 138 143 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t, u_int64_t]) 139 144 AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t, uint64_t]) 145 140 146 AC_HEADER_STDBOOL 141 147 AC_C_CONST … … 147 153 AC_TYPE_PID_T 148 154 AC_TYPE_SIZE_T 155 149 156 AC_CHECK_MEMBERS([struct stat.st_flags]) 150 157 AC_CHECK_MEMBERS([struct stat.st_mtimespec]) … … 153 160 #include <netinet/in.h> 154 161 ]]) 162 155 163 AC_CHECK_DECLS([INFTIM],,, [[#include <poll.h>]]) 156 164 AC_CHECK_DECLS([SO_PEERCRED],,, [[#include <sys/socket.h>]]) 157 165 AC_CHECK_DECLS([O_BINARY],,,) 166 167 AC_CHECK_DECLS([optreset],,, [[#include <getopt.h>]]) 168 AC_CHECK_DECL([dirfd], 169 [], 170 AC_DEFINE([dirfd(x)], [(x)->d_fd], [dirfd() replacement for Solaris]), 171 [#include <getopt.h>]) 172 158 173 AC_HEADER_TIME 159 174 AC_STRUCT_TM -
box/chris/general/lib/server/Daemon.cpp
r1855 r1975 277 277 // unfortunately glibc and BSD differ on this point! 278 278 // http://www.ussg.iu.edu/hypermail/linux/kernel/0305.3/0262.html 279 #ifdef __GLIBC__ 280 optind = 0; 281 #else 279 #if HAVE_DECL_OPTRESET == 1 || defined WIN32 282 280 optind = 1; 283 281 optreset = 1; 282 #elif defined __GLIBC__ 283 optind = 0; 284 #else // Solaris, any others? 285 optind = 1; 284 286 #endif 285 287
