summaryrefslogtreecommitdiff
blob: 63c3cea40f4e09055555b52cd2d338306cd4de31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/net_uuid.c
+++ b/src/net_uuid.c
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
+#include <unistd.h> /* read(), close() */
 
 #if defined(HAVE_INTTYPES_H)
 #include <inttypes.h>
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -81,6 +81,9 @@
 #include <endian.h>
 #endif
 
+#if defined(HAVE_SENDFILE)
+#include <sys/sendfile.h> /* sendfile() */
+#endif
 
 #ifndef WIN32
  /* at some point, I would like to get rid of all these "sys/"