2 ===================================================================
3 RCS file: /cvsroot/pptpclient/pptp-linux/pptp_compat.c,v
4 retrieving revision 1.1
5 retrieving revision 1.3
7 --- a/pptp_compat.c 19 Feb 2008 21:43:28 -0000 1.1
8 +++ b/pptp_compat.c 25 Jul 2008 00:13:56 -0000 1.3
11 #include <sys/types.h>
15 +#if defined (__SVR4) && defined (__sun) /* Solaris */
19 #include "pptp_compat.h"
24 #if defined (__SVR4) && defined (__sun) /* Solaris */
26 * daemon implementation from uClibc
28 ===================================================================
29 RCS file: /cvsroot/pptpclient/pptp-linux/pptp.c,v
30 retrieving revision 1.49
31 retrieving revision 1.51
33 --- a/pptp.c 14 May 2008 06:32:52 -0000 1.49
34 +++ b/pptp.c 24 Jul 2008 05:53:05 -0000 1.51
37 #if defined(__linux__)
38 #include <sys/prctl.h>
44 #include "pptp_quirks.h"
49 #if defined (__SVR4) && defined (__sun)
50 -struct in_addr localbind = { INADDR_ANY };
51 +struct in_addr localbind = { .s_addr = INADDR_ANY };
53 struct in_addr localbind = { INADDR_NONE };
56 struct in_addr inetaddr;
57 volatile int callmgr_sock = -1;
58 char ttydev[PATH_MAX];
60 int pty_fd, tty_fd, gre_fd, rc;
61 volatile pid_t parent_pid, child_pid;
62 u_int16_t call_id, peer_call_id;
64 file2fd("/dev/null", "wb", STDERR_FILENO);
67 - char *tty_name = ttyname(tty_fd);
68 + tty_name = ttyname(tty_fd);
69 snprintf(buf, sizeof(buf), "pptp: GRE-to-PPP gateway on %s",
70 tty_name ? tty_name : "(null)");