]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Windows port fixes for new Autogen and libopts
authorDave Hart <hart@ntp.org>
Mon, 20 Jul 2009 09:39:06 +0000 (09:39 +0000)
committerDave Hart <hart@ntp.org>
Mon, 20 Jul 2009 09:39:06 +0000 (09:39 +0000)
bk: 4a643b3av6G_uwQcFbiw6zu-3QhV6A

ports/winnt/include/config.h
ports/winnt/include/inttypes.h [new file with mode: 0644]
ports/winnt/libntp/libntp.dsp
ports/winnt/libntp/libntp.vcproj

index ccb2cd6c2e250f86a90dddef60e13c591a8330ba..4ec45469a9c36ae133fdadda0fea8e13bf3da038 100644 (file)
@@ -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 (file)
index 0000000..04b0b8f
--- /dev/null
@@ -0,0 +1 @@
+/* inttypes.h dummy for autoopts */
index d8cb0ac009f750acab0c58dfa3d9d81c6fc83921..b359e1f666070c01d4eddb01f207dce9eebf3dce 100644 (file)
@@ -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
index 53e349859ab14fd2d89d5ce2b000dc267ac443fa..71a3d14bb53afa947016596c8f3e0612b3eee01e 100644 (file)
                                RelativePath="..\..\..\include\isc\interfaceiter.h"
                                >
                        </File>
+                       <File
+                               RelativePath="..\include\inttypes.h"
+                               >
+                       </File>
                        <File
                                RelativePath="..\include\sys\ioctl.h"
                                >