summaryrefslogtreecommitdiff
path: root/sync_pipe_write.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-07 14:02:58 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-07 22:03:31 +0000
commit4897ef173aae7e38221937258d2c506a198c2c17 (patch)
treea7f0bfe54bf3195f2bb1ee6fbc54d8ee420fcf1e /sync_pipe_write.c
parent0162e54075bb7ad967a85736b3c8addd53d86de5 (diff)
downloadwireshark-4897ef173aae7e38221937258d2c506a198c2c17.tar.gz
Just use <wsutil/file_util.h>.
That removes the last bit of Wireshark source that explicitly includes io.h and most if not all of the code that explicitly includes unistd.h for read()/write()/lseek()/close(). I'll update the documentation to recommend including <wsutil/file.h> for all file I/O. Change-Id: I7c8be50447daba0dc6a78c7331e637468710b2d8 Reviewed-on: https://code.wireshark.org/review/11625 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'sync_pipe_write.c')
-rw-r--r--sync_pipe_write.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sync_pipe_write.c b/sync_pipe_write.c
index 64dc078dca..c7aa3eb03b 100644
--- a/sync_pipe_write.c
+++ b/sync_pipe_write.c
@@ -23,16 +23,10 @@
#include <string.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef _WIN32
-#include <io.h>
-#endif
-
#include <glib.h>
+#include <wsutil/file_util.h>
+
#include "sync_pipe.h"
/****************************************************************************************************************/