More fixes for Solaris.
This commit is contained in:
parent
25a804c94e
commit
e06415e3d9
3 changed files with 12 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
$Id: dropin.c,v 1.1.2.5 2001/11/05 19:06:07 guus Exp $
|
$Id: dropin.c,v 1.1.2.6 2001/11/05 19:09:08 guus Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <xalloc.h>
|
#include <xalloc.h>
|
||||||
|
|
||||||
|
@ -97,6 +98,8 @@ int daemon(int nochdir, int noclose)
|
||||||
dup2(fd, 2);
|
dup2(fd, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
|
11
src/net.c
11
src/net.c
|
@ -17,7 +17,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
$Id: net.c,v 1.35.4.147 2001/11/03 22:53:01 guus Exp $
|
$Id: net.c,v 1.35.4.148 2001/11/05 19:09:08 guus Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -33,6 +33,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -250,9 +251,11 @@ int setup_listen_socket(int port)
|
||||||
int nfd, flags;
|
int nfd, flags;
|
||||||
struct sockaddr_in a;
|
struct sockaddr_in a;
|
||||||
int option;
|
int option;
|
||||||
char *interface;
|
|
||||||
char *address;
|
char *address;
|
||||||
ip_mask_t *ipmask;
|
ip_mask_t *ipmask;
|
||||||
|
#ifdef HAVE_LINUX
|
||||||
|
char *interface;
|
||||||
|
#endif
|
||||||
cp
|
cp
|
||||||
if((nfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
|
if((nfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
|
||||||
{
|
{
|
||||||
|
@ -811,7 +814,9 @@ cp
|
||||||
|
|
||||||
terminate_connection(myself->connection, 0);
|
terminate_connection(myself->connection, 0);
|
||||||
|
|
||||||
// destroy_trees();
|
close(udp_socket);
|
||||||
|
close(tcp_socket);
|
||||||
|
|
||||||
exit_edges();
|
exit_edges();
|
||||||
exit_subnets();
|
exit_subnets();
|
||||||
exit_nodes();
|
exit_nodes();
|
||||||
|
|
Loading…
Reference in a new issue