[Forensics-changes] [yara] 33/160: fixed build on freebsd 10 with a conditional #define so that warnings are not introduced in other builds
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit 622e45c8ad8c9d17b58cb66c88af63c13ff3bde6
Author: Wes Widner <kai5263499 at gmail.com>
Date: Tue Mar 10 05:41:42 2015 -0700
fixed build on freebsd 10 with a conditional #define so that warnings are not introduced in other builds
---
libyara/proc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libyara/proc.c b/libyara/proc.c
index 710e566..b530a75 100644
--- a/libyara/proc.c
+++ b/libyara/proc.c
@@ -140,7 +140,11 @@ int yr_process_get_memory(
#else
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
+ defined(__OpenBSD__) || defined(__MACH__)
+#else
#define _XOPEN_SOURCE 500
+#endif
#include <fcntl.h>
#include <unistd.h>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list