50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From 1a0c2661fa8f3ad43c7d38915c967ad6aac987f9 Mon Sep 17 00:00:00 2001
|
|
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
Date: Sat, 19 Apr 2008 17:43:08 +0200
|
|
Subject: [PATCH 14/18] Fixes for -Werror-no-implicit-functions
|
|
|
|
Some fixes for issues preventing builds with
|
|
'-Werror-implicit-function-declaration'.
|
|
---
|
|
test/getservbyname.c | 1 +
|
|
test/stdlib/testsort.c | 2 ++
|
|
test/stdlib/tst-calloc.c | 2 ++
|
|
3 files changed, 5 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/test/getservbyname.c b/test/getservbyname.c
|
|
index b70ca19..caf1c9f 100644
|
|
--- a/test/getservbyname.c
|
|
+++ b/test/getservbyname.c
|
|
@@ -1,5 +1,6 @@
|
|
#include <stdio.h>
|
|
#include <netdb.h>
|
|
+#include <arpa/inet.h>
|
|
|
|
int main(int argc,char *argv[]) {
|
|
struct servent* se;
|
|
diff --git a/test/stdlib/testsort.c b/test/stdlib/testsort.c
|
|
index aa4332a..5a92bc0 100644
|
|
--- a/test/stdlib/testsort.c
|
|
+++ b/test/stdlib/testsort.c
|
|
@@ -1,3 +1,5 @@
|
|
+#define _BSD_SOURCE
|
|
+
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
diff --git a/test/stdlib/tst-calloc.c b/test/stdlib/tst-calloc.c
|
|
index a9b9e2a..049117b 100644
|
|
--- a/test/stdlib/tst-calloc.c
|
|
+++ b/test/stdlib/tst-calloc.c
|
|
@@ -17,6 +17,8 @@
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
02111-1307 USA. */
|
|
|
|
+#define _BSD_SOURCE
|
|
+
|
|
#include <errno.h>
|
|
#include <limits.h>
|
|
#include <malloc.h>
|
|
--
|
|
1.6.2.5
|
|
|