summaryrefslogtreecommitdiffstats
path: root/basicobjects
diff options
context:
space:
mode:
Diffstat (limited to 'basicobjects')
-rw-r--r--basicobjects/simplebuffer.c4
-rw-r--r--basicobjects/simplebuffer_ut.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/basicobjects/simplebuffer.c b/basicobjects/simplebuffer.c
index b47d6b6..1e7b3fb 100644
--- a/basicobjects/simplebuffer.c
+++ b/basicobjects/simplebuffer.c
@@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-#define _GNU_SOURCE
+#include "config.h"
#include <errno.h> /* for errors */
#include <stdlib.h> /* for free() */
#include <unistd.h> /* for write() */
@@ -26,7 +25,6 @@
#include "simplebuffer.h"
#include "trace.h"
-#include "config.h"
/* End line string */
#define ENDLNSTR "\n"
diff --git a/basicobjects/simplebuffer_ut.c b/basicobjects/simplebuffer_ut.c
index 61272da..ba9d172 100644
--- a/basicobjects/simplebuffer_ut.c
+++ b/basicobjects/simplebuffer_ut.c
@@ -17,10 +17,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>