From: Dave Hart Date: Mon, 20 Jul 2009 09:39:06 +0000 (+0000) Subject: Windows port fixes for new Autogen and libopts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=985444ec8fab202824e89dbf846e674a2ed12259;p=thirdparty%2Fntp.git Windows port fixes for new Autogen and libopts bk: 4a643b3av6G_uwQcFbiw6zu-3QhV6A --- diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index ccb2cd6c2e..4ec45469a9 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -344,10 +344,15 @@ char *NTstrerror(int errnum); #define HAVE_STRCHR 1 #define HAVE_FCNTL_H 1 #define HAVE_SYS_RESOURCE_H +#define HAVE_INTTYPES_H #define HAVE_BSD_NICE /* emulate BSD setpriority() */ typedef char *caddr_t; +#ifdef _WCTYPE_T_DEFINED /* see vc/include/crtdefs.h */ +#define HAVE_WINT_T +#endif + #ifndef _INTPTR_T_DEFINED typedef long intptr_t; #define _INTPTR_T_DEFINED diff --git a/ports/winnt/include/inttypes.h b/ports/winnt/include/inttypes.h new file mode 100644 index 0000000000..04b0b8fda0 --- /dev/null +++ b/ports/winnt/include/inttypes.h @@ -0,0 +1 @@ +/* inttypes.h dummy for autoopts */ diff --git a/ports/winnt/libntp/libntp.dsp b/ports/winnt/libntp/libntp.dsp index d8cb0ac009..b359e1f666 100644 --- a/ports/winnt/libntp/libntp.dsp +++ b/ports/winnt/libntp/libntp.dsp @@ -446,6 +446,10 @@ SOURCE=..\include\arpa\inet.h # End Source File # Begin Source File +SOURCE=..\include\inttypes.h +# End Source File +# Begin Source File + SOURCE=..\..\..\include\isc\interfaceiter.h # End Source File # Begin Source File diff --git a/ports/winnt/libntp/libntp.vcproj b/ports/winnt/libntp/libntp.vcproj index 53e349859a..71a3d14bb5 100644 --- a/ports/winnt/libntp/libntp.vcproj +++ b/ports/winnt/libntp/libntp.vcproj @@ -1918,6 +1918,10 @@ RelativePath="..\..\..\include\isc\interfaceiter.h" > + +