1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-06 16:25:50 +01:00

Bug fix in the networking code

This commit is contained in:
dan
2000-04-17 21:24:58 +00:00
parent 74bbc24da2
commit cf3bb1fd0e
2 changed files with 11 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
/*
* WINGs WMConnection function library
*
* Copyright (c) 1999 Dan Pascu
* Copyright (c) 1999-2000 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -58,6 +58,11 @@
# define SA_RESTART 0
#endif
/* For some Solaris systems */
#if !defined(HAVE_INET_ATON) && !defined(INADDR_NONE)
# define INADDR_NONE (-1)
#endif
/* Stuff for setting the sockets into non-blocking mode. */
/*#ifdef __POSIX_SOURCE
# define NONBLOCK_OPT O_NONBLOCK
@@ -67,10 +72,8 @@
#define NONBLOCK_OPT O_NONBLOCK
#define NETBUF_SIZE 4096
#define DEF_TIMEOUT 600 /* 600 seconds == 10 minutes */