mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 02:16:27 -04:00
*/*: Fix wpa_supplicant* and hostapd* EAPOL_TEST build
Fix EAPOL_TEST build. Local funcion os_fdatasync() is valid under FreeBSD as fdatasync(2) is supported. PR: 261636 Reported by: David Siebörger <drs-freebsd@sieborger.nom.za> MFH: 2022Q1
This commit is contained in:
parent
ca37fab146
commit
74e181d200
4 changed files with 0 additions and 68 deletions
|
@ -1,17 +0,0 @@
|
|||
--- 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
|
|
@ -1,17 +0,0 @@
|
|||
--- 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
|
|
@ -1,17 +0,0 @@
|
|||
--- 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
|
|
@ -1,17 +0,0 @@
|
|||
--- 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
|
Loading…
Add table
Reference in a new issue