|
From: Yaroslav K. <kav...@gm...> - 2011-07-12 07:23:13
|
Sam Steingold wrote: > how about all the other constants? > specifically: > grep '#undef' src/config.h.in | sed 's/#undef *//'|sort> c > egrep '^ *#define' src/win32.d | sed -e 's/^ *#define *\([^ ]*\).*/\1/' | sort> w > diff -u c w | grep '^ ' > HAVE_GETHOSTBYNAME > HAVE_GETHOSTNAME > HAVE_IPV4 > HAVE_IPV6 > HAVE_LC_MESSAGES > HAVE_MUNMAP > HAVE_SHUTDOWN > HAVE_STRERROR > HAVE_WORKING_MPROTECT > SETSOCKOPT_ARG_T > SETSOCKOPT_CONST > SETSOCKOPT_OPTLEN_T > SIZEOF_OFF_T > socklen_t > for c in `diff -u c w | grep '^ '`; do grep $c src/win32.d build/config.h; done src/win32.d:#define HAVE_GETHOSTBYNAME build-full-debug/config.h:/* #undef HAVE_GETHOSTBYNAME */ src/win32.d:#define HAVE_GETHOSTNAME build-full-debug/config.h:/* #undef HAVE_GETHOSTNAME */ src/win32.d:#define HAVE_IPV4 build-full-debug/config.h:#define HAVE_IPV4 1 src/win32.d:#define HAVE_IPV6 build-full-debug/config.h:#define HAVE_IPV6 1 src/win32.d: #define HAVE_LC_MESSAGES 0 src/win32.d: #define HAVE_LC_MESSAGES 0 src/win32.d: #define HAVE_LC_MESSAGES 1 build-full-debug/config.h:/* #undef HAVE_LC_MESSAGES */ src/win32.d:#define HAVE_MUNMAP build-full-debug/config.h:/* #undef HAVE_MUNMAP */ src/win32.d:#define HAVE_SHUTDOWN src/win32.d:#ifdef HAVE_SHUTDOWN build-full-debug/config.h:/* #undef HAVE_SHUTDOWN */ src/win32.d:#define HAVE_STRERROR 1 build-full-debug/config.h:#define HAVE_STRERROR 1 build-full-debug/config.h:/* #undef HAVE_STRERROR_R */ src/win32.d:#define HAVE_WORKING_MPROTECT build-full-debug/config.h:/* #undef HAVE_WORKING_MPROTECT */ src/win32.d:#define SETSOCKOPT_ARG_T char* build-full-debug/config.h:/* #undef SETSOCKOPT_ARG_T */ src/win32.d:#define SETSOCKOPT_CONST const build-full-debug/config.h:/* #undef SETSOCKOPT_CONST */ src/win32.d:#define SETSOCKOPT_OPTLEN_T int build-full-debug/config.h:/* #undef SETSOCKOPT_OPTLEN_T */ src/win32.d:#undef SIZEOF_OFF_T /* on mingw, it was defined in config.h */ src/win32.d:#define SIZEOF_OFF_T 8 build-full-debug/config.h:#define SIZEOF_OFF_T 4 src/win32.d:#ifndef socklen_t src/win32.d:#define socklen_t int build-full-debug/config.h:/* type to use in place of socklen_t if not defined */ build-full-debug/config.h:/* #undef socklen_t */ -- WBR, Yaroslav Kavenchuk |