[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] [PATCH 2/2] tests: declare source as GNU for inet_aton d
From: |
Carlo Marcelo Arenas Belon |
Subject: |
[Confuse-devel] [PATCH 2/2] tests: declare source as GNU for inet_aton definition |
Date: |
Sun, 4 Jan 2009 00:53:01 -0800 |
otherwise to show the following warning if compiled in -ansi mode :
suite_single.c:14: warning: implicit declaration of function ‘inet_aton’
suite_validate.c:57: warning: implicit declaration of function ‘inet_aton’
Signed-off-by: Carlo Marcelo Arenas Belon <address@hidden>
---
tests/suite_single.c | 1 +
tests/suite_validate.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tests/suite_single.c b/tests/suite_single.c
index ded643f..3806a46 100644
--- a/tests/suite_single.c
+++ b/tests/suite_single.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include "check_confuse.h"
#include <string.h>
#include <stdlib.h>
diff --git a/tests/suite_validate.c b/tests/suite_validate.c
index e29f511..d68923d 100644
--- a/tests/suite_validate.c
+++ b/tests/suite_validate.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include "check_confuse.h"
#include <string.h>
#include <sys/types.h>