27639a
diff -up pptp-1.7.2/pptp_gre.c.nested pptp-1.7.2/pptp_gre.c
27639a
--- pptp-1.7.2/pptp_gre.c.nested	2011-12-06 16:45:34.605691678 +0000
27639a
+++ pptp-1.7.2/pptp_gre.c	2011-12-06 19:07:14.169449813 +0000
27639a
@@ -23,6 +23,10 @@
27639a
 #include "pqueue.h"
27639a
 #include "test.h"
27639a
 
27639a
+/* globals from pptp.c */
27639a
+extern struct in_addr localbind;
27639a
+extern int rtmark;
27639a
+
27639a
 #define PACKET_MAX 8196
27639a
 /* test for a 32 bit counter overflow */
27639a
 #define WRAPPED( curseq, lastseq) \
27639a
@@ -82,8 +86,6 @@ uint64_t time_now_usecs(void)
27639a
 int pptp_gre_bind(struct in_addr inetaddr)
27639a
 {
27639a
     struct sockaddr_in src_addr, loc_addr;
27639a
-    extern struct in_addr localbind;
27639a
-    extern int rtmark;
27639a
     int s = socket(AF_INET, SOCK_RAW, PPTP_PROTO);
27639a
     if (s < 0) { warn("socket: %s", strerror(errno)); return -1; }
27639a
 #ifdef SO_MARK