void-packages/srcpkgs/proplib/patches/0001-bugfix-to-enable-fdata...

42 lines
1.0 KiB
Diff
Raw Normal View History

From edb6ac4b6adfc94deb4c326087948efd085f111a Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Fri, 17 May 2013 08:04:10 +0200
Subject: [PATCH] bugfix: to enable fdatasync(3) config.h must be included
(sigh).
---
NEWS | 4 ++++
src/prop_object.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/NEWS b/NEWS
index b6d3877..e4542f6 100644
--- NEWS
+++ NEWS
@@ -1,3 +1,7 @@
+0.6.4
+-------------------------------------------------------------------------------
+ * Properly enable fdatasync(3) if it's found in configure.
+
0.6.3
-------------------------------------------------------------------------------
* Removed NetBSD specific code and defines for kernel/standalone.
diff --git a/src/prop_object.c b/src/prop_object.c
index ec76453..4155095 100644
--- src/prop_object.c
+++ src/prop_object.c
@@ -29,6 +29,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <prop/prop_object.h>
#include "prop_object_impl.h"
--
1.8.2.2