aboutsummaryrefslogtreecommitdiffstats
path: root/main/openpgm/openpgm-fix-includes.patch
blob: 6f1e5901fcca016f10432452943d59f05d3a68c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- ./include/pgm/types.h
+++ ./include/pgm/types.h
@@ -27,6 +27,7 @@
 
 #ifndef _MSC_VER
 #	include <sys/param.h>
+#	include <sys/types.h>
 #endif
 #include <pgm/macros.h>
 
--- ./include/impl/security.h
+++ ./include/impl/security.h
@@ -33,7 +33,6 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <sys/types.h>
-#include <sys/timeb.h>
 #include <impl/i18n.h>
 #include <impl/errno.h>
 #include <impl/string.h>
@@ -41,6 +40,8 @@
 PGM_BEGIN_DECLS
 
 #ifdef HAVE_FTIME
+#include <sys/timeb.h>
+
 static inline
 errno_t
 #	if   !defined( _WIN32 )