You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
Index: Makefile |
|
--- Makefile.orig 2009-01-02 10:03:20 +0100 |
|
+++ Makefile 2009-01-04 11:07:16 +0100 |
|
@@ -1,15 +1,20 @@ |
|
VERSION=1.0 |
|
|
|
-DEBUG=-g -pedantic #-pg #-fprofile-arcs |
|
-LDFLAGS=-lssl -lcrypto -lm -lsnmp $(DEBUG) |
|
-CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) |
|
+CC=gcc |
|
+CFLAGS= |
|
+CPPFLAGS=-DVERSION=\"$(VERSION)\" |
|
+LDFLAGS= |
|
+LIBS=-lnetsnmp -lssl -lcrypto -lm |
|
|
|
OBJS=error.o log.o utils.o utils2.o daytime.o time.o mssl.o http.o snts.o irc.o icmp.o ntpd.o snmp.o simpleptp.o socks5sntp.o main.o sntp.o |
|
|
|
+.c.o: |
|
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< |
|
+ |
|
all: omnisync |
|
|
|
omnisync: $(OBJS) |
|
- $(CC) -Wall $(OBJS) $(LDFLAGS) -o omnisync |
|
+ $(CC) $(LDFLAGS) $(OBJS) -o omnisync $(LIBS) |
|
|
|
install: omnisync |
|
cp omnisync $(DESTDIR)/usr/local/sbin |
|
Index: icmp.c |
|
--- icmp.c.orig 2009-01-02 10:03:20 +0100 |
|
+++ icmp.c 2009-01-04 11:06:19 +0100 |
|
@@ -48,6 +48,7 @@ |
|
#include <sys/types.h> |
|
#include <sys/socket.h> |
|
#include <arpa/inet.h> |
|
+#include <netinet/in.h> |
|
#include <netinet/in_systm.h> |
|
#include <netinet/ip.h> |
|
#include <netinet/ip_icmp.h> |
|
Index: time.c |
|
--- time.c.orig 2009-01-02 10:03:20 +0100 |
|
+++ time.c 2009-01-04 11:06:19 +0100 |
|
@@ -17,7 +17,7 @@ |
|
(in[1] << 16) + |
|
(in[2] << 8) + |
|
(in[3] ); |
|
- epoch -= 2208988800; /* 'time' returns seconds since january 1, 1900 00:00 */ |
|
+ epoch -= 2208988800UL; /* 'time' returns seconds since january 1, 1900 00:00 */ |
|
|
|
return (double)epoch; |
|
}
|
|
|