From: Lionel Sambuc Date: Mon, 25 Feb 2013 11:48:26 +0000 (+0100) Subject: Removing obsolete _MINIX_SOURCE define X-Git-Tag: v3.3.0~1127 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=813d4c6a36db5164289c07ee75a63e31c2a4bcfd;p=minix.git Removing obsolete _MINIX_SOURCE define Change-Id: I924d5af294cd5daf17c73f71803f060cea3c3d8b --- diff --git a/commands/arp/arp.c b/commands/arp/arp.c index 7304f15ca..d394c5260 100644 --- a/commands/arp/arp.c +++ b/commands/arp/arp.c @@ -7,7 +7,7 @@ Manipulate ARP table */ #define _POSIX_C_SOURCE 2 -#define _MINIX_SOURCE +#define _NETBSD_SOURCE 1 #include #include diff --git a/commands/cron/cron.c b/commands/cron/cron.c index 1a09c2f40..53ff88010 100644 --- a/commands/cron/cron.c +++ b/commands/cron/cron.c @@ -2,9 +2,6 @@ * 7 Dec 1996 */ -#define _MINIX_SOURCE -#define _MINIX 1 - #define nil ((void*)0) #include #include diff --git a/commands/stty/stty.c b/commands/stty/stty.c index 309cbc5be..1a14226ce 100644 --- a/commands/stty/stty.c +++ b/commands/stty/stty.c @@ -4,10 +4,6 @@ Adapted to POSIX 1003.2 by Philip Homburg. */ -#ifdef __minix_vmd -#define _MINIX_SOURCE -#endif - #include #include #include diff --git a/commands/tcpstat/tcpstat.c b/commands/tcpstat/tcpstat.c index 23591799f..33c44d196 100644 --- a/commands/tcpstat/tcpstat.c +++ b/commands/tcpstat/tcpstat.c @@ -4,8 +4,8 @@ tcpstat.c Created: June 1995 by Philip Homburg */ -#define _MINIX_SOURCE #define _POSIX_C_SOURCE 2 +#define _NETBSD_SOURCE 1 #include #undef printf diff --git a/commands/udpstat/udpstat.c b/commands/udpstat/udpstat.c index 439b0197d..972865b63 100644 --- a/commands/udpstat/udpstat.c +++ b/commands/udpstat/udpstat.c @@ -4,8 +4,8 @@ udpstat.c Created: March 2001 by Philip Homburg */ -#define _MINIX_SOURCE #define _POSIX_C_SOURCE 2 +#define _NETBSD_SOURCE 1 #include #undef printf diff --git a/lib/libc/sys-minix/execve.c b/lib/libc/sys-minix/execve.c index dcb84373c..27b350584 100644 --- a/lib/libc/sys-minix/execve.c +++ b/lib/libc/sys-minix/execve.c @@ -1,7 +1,6 @@ /* execve() - basic program execution call Author: Kees J. Bot * 21 Jan 1994 */ -#define _MINIX_SOURCE #include #include "namespace.h" diff --git a/man/man2/reboot.2 b/man/man2/reboot.2 index eee86c9b4..f6993f5ee 100644 --- a/man/man2/reboot.2 +++ b/man/man2/reboot.2 @@ -4,7 +4,7 @@ reboot \- close down the system or reboot .SH SYNTAX .ft B .nf -#define _MINIX_SOURCE 1 +#define _NETBSD_SOURCE 1 #include diff --git a/servers/inet/inet.c b/servers/inet/inet.c index 05314080b..adecedf1b 100644 --- a/servers/inet/inet.c +++ b/servers/inet/inet.c @@ -35,8 +35,6 @@ from DL_ETH: #include "inet.h" -#define _MINIX_SOURCE 1 - #include #include #include diff --git a/servers/inet/inet_config.c b/servers/inet/inet_config.c index b9d1e325b..4854970b7 100644 --- a/servers/inet/inet_config.c +++ b/servers/inet/inet_config.c @@ -9,8 +9,6 @@ Modified: Apr 07, 2001 by Kees J. Bot Copyright 1995 Philip Homburg */ -#define _MINIX_SOURCE 1 - #include #include #include diff --git a/servers/lwip/inet_config.c b/servers/lwip/inet_config.c index 631df1c72..700542c94 100644 --- a/servers/lwip/inet_config.c +++ b/servers/lwip/inet_config.c @@ -9,8 +9,8 @@ Modified: Apr 07, 2001 by Kees J. Bot Copyright 1995 Philip Homburg */ -#define _MINIX_SOURCE 1 #define _POSIX_SOURCE 1 +#define _NETBSD_SOURCE 1 #include #include