blob: e210fcb5a5496b9575d9e6ed35eea03f2da7e926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From: Juergen Beisert <juergen@kreuzholzen.de>
Subject: Avoid some confusing compile time warnings
We are compiling ntpclient on a GNU based system. This patch avoids the
following warning:
ntpclient.c:447: warning: implicit declaration of function 'herror'
ntpclient.c:447: warning: nested extern declaration of 'herror'
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
---
ntpclient.c | 1 +
1 file changed, 1 insertion(+)
Index: ntpclient.c
===================================================================
--- ntpclient.c.orig
+++ ntpclient.c
@@ -44,6 +44,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#define __USE_GNU
#include <netdb.h> /* gethostbyname */
#include <arpa/inet.h>
#include <time.h>
|