Removing obsolete _MINIX define

Change-Id: Id33ac7e973d1c0e249b690fe44a597474fac6076
This commit is contained in:
2013-02-25 12:43:15 +01:00
parent f360500351
commit 8e4736f2df
102 changed files with 122 additions and 239 deletions

View File

@@ -158,7 +158,7 @@ void do_child(int childno) {
#endif
/* Normally we'd zerofill sin_zero, but there is no such thing on Minix */
#ifndef _MINIX
#if !defined(__minix)
memset(server.sin_zero, '\0', sizeof server.sin_zero);
#endif
@@ -219,7 +219,7 @@ void do_child(int childno) {
}
void do_parent(void) {
#ifndef _MINIX
#if !defined(__minix)
int yes = 1;
#endif
int fd_sock, fd_new, exitstatus;
@@ -242,12 +242,12 @@ void do_parent(void) {
my_addr.sin_port = htons(MYPORT); /* Short, network byte order */
my_addr.sin_addr.s_addr = INADDR_ANY;
/* Normally we'd zerofill sin_zero, but there is no such thing on Minix */
#ifndef _MINIX
#if !defined(__minix)
memset(my_addr.sin_zero, '\0', sizeof my_addr.sin_zero);
#endif
/* Reuse port number. Not implemented in Minix. */
#ifndef _MINIX
#if !defined(__minix)
if(setsockopt(fd_sock, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) < 0) {
perror("Error setting port reuse option");
exit(-1);