summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2009-03-21 18:53:54 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2009-03-21 18:53:54 +0000
commit7c78ac8f2f3f4d26e5b17afd3adecad12562bbd0 (patch)
tree9bf4500fd3ea235b4be50bca28a5a57dfa2ea64e /patches
parent6f987dc94867ff02555d111b25fa8b4e9bec3a22 (diff)
downloadptxdist-7c78ac8f2f3f4d26e5b17afd3adecad12562bbd0.tar.gz
ptxdist-7c78ac8f2f3f4d26e5b17afd3adecad12562bbd0.tar.xz
* ntpclient
- update to a more recent version - clean up the rule file - adding more menu options git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10134 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches')
-rw-r--r--patches/ntpclient_2007/generic/avoid_warnings.diff27
-rw-r--r--patches/ntpclient_2007/generic/fix_library.diff29
-rw-r--r--patches/ntpclient_2007/generic/series3
3 files changed, 59 insertions, 0 deletions
diff --git a/patches/ntpclient_2007/generic/avoid_warnings.diff b/patches/ntpclient_2007/generic/avoid_warnings.diff
new file mode 100644
index 000000000..e210fcb5a
--- /dev/null
+++ b/patches/ntpclient_2007/generic/avoid_warnings.diff
@@ -0,0 +1,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>
diff --git a/patches/ntpclient_2007/generic/fix_library.diff b/patches/ntpclient_2007/generic/fix_library.diff
new file mode 100644
index 000000000..ab743e167
--- /dev/null
+++ b/patches/ntpclient_2007/generic/fix_library.diff
@@ -0,0 +1,29 @@
+From: Juergen Beisert <juergen@kreuzholzen.de>
+Subject: Use the correct macro name to parametrize make's standard rule
+
+To add libraries to be linked, the 'LDLIBS' is the correct macro name.
+'LDFAGS' is for paths etc.
+
+Make's standard rule to compile a C file into an executable is:
+
+$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< $(LDLIBS) -o $@
+
+Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
+@@ -14,7 +14,7 @@ CFLAGS += -DENABLE_DEBUG
+ CFLAGS += -DENABLE_REPLAY
+ # CFLAGS += -DUSE_OBSOLETE_GETTIMEOFDAY
+
+-LDFLAGS += -lrt
++LDLIBS += -lrt
+
+ all: ntpclient
+
diff --git a/patches/ntpclient_2007/generic/series b/patches/ntpclient_2007/generic/series
new file mode 100644
index 000000000..24a313177
--- /dev/null
+++ b/patches/ntpclient_2007/generic/series
@@ -0,0 +1,3 @@
+fix_library.diff -p0
+avoid_warnings.diff -p0
+