Some tiny fixes.
Submitted by: Reviewed by: PR: Submitted by: Reviewed by: PR:
This commit is contained in:
parent
8f7de4f04c
commit
f0f1b4e400
@ -442,8 +442,8 @@ re_start:
|
|||||||
ssl_pending = read_ssl && SSL_pending(con);
|
ssl_pending = read_ssl && SSL_pending(con);
|
||||||
|
|
||||||
if (!ssl_pending)
|
if (!ssl_pending)
|
||||||
#ifndef WINDOWS
|
|
||||||
{
|
{
|
||||||
|
#ifndef WINDOWS
|
||||||
if (tty_on)
|
if (tty_on)
|
||||||
{
|
{
|
||||||
if (read_tty) FD_SET(fileno(stdin),&readfds);
|
if (read_tty) FD_SET(fileno(stdin),&readfds);
|
||||||
|
@ -345,7 +345,8 @@ char *ip;
|
|||||||
#if defined SOL_SOCKET && defined SO_REUSEADDR
|
#if defined SOL_SOCKET && defined SO_REUSEADDR
|
||||||
{
|
{
|
||||||
int j = 1;
|
int j = 1;
|
||||||
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &j, sizeof j);
|
setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
|
||||||
|
(const void *) &j, sizeof j);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
|
if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
* [including the GNU Public Licence.]
|
* [including the GNU Public Licence.]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MSDOS) && !defined(VMS)
|
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
/* If unistd.h defines _POSIX_VERSION, we conclude that we
|
/* If unistd.h defines _POSIX_VERSION, we conclude that we
|
||||||
* are on a POSIX system and have sigaction and termios. */
|
* are on a POSIX system and have sigaction and termios. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user