Blame SOURCES/0001-Make-sure-sbrk-is-defined-in-unistd.patch

e553a1
From b0fdc30500ddd271ec263b5b1c2eacf86ff73461 Mon Sep 17 00:00:00 2001
e553a1
From: "bas@zoetekouw.net" <bas@zoetekouw.net>
e553a1
Date: Mon, 7 Aug 2017 22:58:43 +0200
e553a1
Subject: [PATCH] Make sure sbrk() is defined in unistd
e553a1
e553a1
---
e553a1
 src/common_includes.h | 4 ++++
e553a1
 1 file changed, 4 insertions(+)
e553a1
e553a1
diff --git a/src/common_includes.h b/src/common_includes.h
e553a1
index a4593d3..fb3148c 100644
e553a1
--- a/src/common_includes.h
e553a1
+++ b/src/common_includes.h
e553a1
@@ -22,6 +22,10 @@
e553a1
 #ifndef __COMMON_INCLUDES_H
e553a1
 #define __COMMON_INCLUDES_H
e553a1
 
e553a1
+/* make sure unistd.h defines sbrk() */
e553a1
+#define _DEFAULT_SOURCE 1
e553a1
+#define _BSD_SOURCE 1
e553a1
+
e553a1
 #include <stdio.h>
e553a1
 #include <string.h>
e553a1
 #include <strings.h>
e553a1
-- 
e553a1
2.14.4
e553a1