opnsense-ports/devel/elfutils/files/patch-lib_stdio__ext.h
Franco Fichtner 82813a7fc7 */*: sync with upstream
Taken from: FreeBSD
2016-07-14 09:12:15 +02:00

19 lines
344 B
C

--- lib/stdio_ext.h.orig 2016-07-13 06:58:54 UTC
+++ lib/stdio_ext.h
@@ -0,0 +1,16 @@
+#pragma once
+#include <stdio.h>
+
+enum {
+ FSETLOCKING_QUERY,
+ FSETLOCKING_INTERNAL,
+ FSETLOCKING_BYCALLER,
+};
+
+static inline int
+__fsetlocking(FILE *fp __unused, int type __unused)
+{
+
+ /* No-op on FreeBSD? */
+ return (FSETLOCKING_BYCALLER);
+}