summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-21 17:31:59 +0200
committerUlf Hermann <[email protected]>2017-05-03 08:47:40 +0000
commitf959e18188c5482680d730324b5bd074f6866f96 (patch)
treef7e058da1dfa9e5a2be5ffec98dc7ce15fc4b9a4 /lib
parent8508151634702f1e52f36cbfce085955f074e60c (diff)
If f(un)lockfile is unavailable define it away
Sometimes _POSIX_THREAD_SAFE_FUNCTIONS is still set in this case, which in turn leads to build problems in getopt.c (which would define the functions to nop anyway if it knew they aren't present). Change-Id: I76debd27f1d1ed968cc663db4b60adb5f0052d4b Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/eu-config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/eu-config.h b/lib/eu-config.h
index 135803e7..e69b213d 100644
--- a/lib/eu-config.h
+++ b/lib/eu-config.h
@@ -198,5 +198,12 @@ asm (".section predict_data, \"aw\"; .previous\n"
# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SYMBOL_VERSIONING"
#endif
+#if !HAVE_FLOCKFILE
+# define flockfile(fp) /* nop */
+#endif
+
+#if !HAVE_FUNLOCKFILE
+# define funlockfile(fp) /* nop */
+#endif
#endif /* eu-config.h */