1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net/hostapd/files/patch-src_utils_os.h
John Marino 57ed9d447c net/hostapd: Update os_unix.h to follow os_unix.c change
For completeness, make update os_unix.h patch to match the previous
commit to os_unix.c (no impact for FreeBSD)
2016-09-30 20:14:32 +00:00

18 lines
505 B
C

--- src/utils/os.h.orig 2016-09-17 20:36:13 UTC
+++ src/utils/os.h
@@ -246,12 +246,14 @@ char * os_readfile(const char *name, siz
*/
int os_file_exists(const char *fname);
+#if !defined __FreeBSD__ && !defined __DragonFly__
/**
* os_fdatasync - Sync a file's (for a given stream) state with storage device
* @stream: the stream to be flushed
* Returns: 0 if the operation succeeded or -1 on failure
*/
int os_fdatasync(FILE *stream);
+#endif
/**
* os_zalloc - Allocate and zero memory