From 7b1b5b8279df9649f06373758a5abb0754c36ae1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Sep 2012 10:35:02 -0500 Subject: Revert patches moving include of port_local.h to top of file This was covering up rtems-bsd-config.h.in undefining __P. These files can remain closer to the FreeBSD originals. --- freebsd-userspace/commands/sbin/ping/ping.c | 1 - freebsd-userspace/commands/sbin/ping6/ping6.c | 2 -- freebsd-userspace/lib/libc/inet/inet_addr.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_cidr_ntop.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_cidr_pton.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_lnaof.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_makeaddr.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_net_ntop.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_net_pton.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_neta.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_netof.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_network.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_ntoa.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_ntop.c | 4 ++-- freebsd-userspace/lib/libc/inet/inet_pton.c | 3 +-- freebsd-userspace/lib/libc/inet/nsap_addr.c | 4 ++-- freebsd-userspace/rtems/syslog.c | 2 -- 17 files changed, 27 insertions(+), 33 deletions(-) diff --git a/freebsd-userspace/commands/sbin/ping/ping.c b/freebsd-userspace/commands/sbin/ping/ping.c index 0ddf4db6..6014b743 100644 --- a/freebsd-userspace/commands/sbin/ping/ping.c +++ b/freebsd-userspace/commands/sbin/ping/ping.c @@ -1,5 +1,4 @@ #ifdef __rtems__ -#include "port_before.h" #define __need_getopt_newlib #include #endif diff --git a/freebsd-userspace/commands/sbin/ping6/ping6.c b/freebsd-userspace/commands/sbin/ping6/ping6.c index 62cb492b..20b5f7ba 100644 --- a/freebsd-userspace/commands/sbin/ping6/ping6.c +++ b/freebsd-userspace/commands/sbin/ping6/ping6.c @@ -1,8 +1,6 @@ #ifdef __rtems__ #define USE_RFC2292BIS -#include "port_before.h" - #define __need_getopt_newlib #include #endif diff --git a/freebsd-userspace/lib/libc/inet/inet_addr.c b/freebsd-userspace/lib/libc/inet/inet_addr.c index 2774ca4c..e606d345 100644 --- a/freebsd-userspace/lib/libc/inet/inet_addr.c +++ b/freebsd-userspace/lib/libc/inet/inet_addr.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 1983, 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -73,6 +71,8 @@ static const char rcsid[] = "$Id: inet_addr.c,v 1.4.18.1 2005/04/27 05:00:52 sra #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_cidr_ntop.c b/freebsd-userspace/lib/libc/inet/inet_cidr_ntop.c index 7ed57322..645b3cd5 100644 --- a/freebsd-userspace/lib/libc/inet/inet_cidr_ntop.c +++ b/freebsd-userspace/lib/libc/inet/inet_cidr_ntop.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1998,1999 by Internet Software Consortium. @@ -21,6 +19,8 @@ static const char rcsid[] = "$Id: inet_cidr_ntop.c,v 1.4.18.3 2006/10/11 02:32:47 marka Exp $"; #endif +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_cidr_pton.c b/freebsd-userspace/lib/libc/inet/inet_cidr_pton.c index a0bb4410..b0586ff3 100644 --- a/freebsd-userspace/lib/libc/inet/inet_cidr_pton.c +++ b/freebsd-userspace/lib/libc/inet/inet_cidr_pton.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1998,1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: inet_cidr_pton.c,v 1.5.18.1 2005/04/27 05:00:5 #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_lnaof.c b/freebsd-userspace/lib/libc/inet/inet_lnaof.c index 3cd73285..7cab8946 100644 --- a/freebsd-userspace/lib/libc/inet/inet_lnaof.c +++ b/freebsd-userspace/lib/libc/inet/inet_lnaof.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -35,6 +33,8 @@ static const char sccsid[] = "@(#)inet_lnaof.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_makeaddr.c b/freebsd-userspace/lib/libc/inet/inet_makeaddr.c index 33067d9e..04a37a03 100644 --- a/freebsd-userspace/lib/libc/inet/inet_makeaddr.c +++ b/freebsd-userspace/lib/libc/inet/inet_makeaddr.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -35,6 +33,8 @@ static const char sccsid[] = "@(#)inet_makeaddr.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_net_ntop.c b/freebsd-userspace/lib/libc/inet/inet_net_ntop.c index b885a56a..867f441a 100644 --- a/freebsd-userspace/lib/libc/inet/inet_net_ntop.c +++ b/freebsd-userspace/lib/libc/inet/inet_net_ntop.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996,1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.3.18.2 2006/06/20 02:51:32 #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_net_pton.c b/freebsd-userspace/lib/libc/inet/inet_net_pton.c index 976878c1..74df38b9 100644 --- a/freebsd-userspace/lib/libc/inet/inet_net_pton.c +++ b/freebsd-userspace/lib/libc/inet/inet_net_pton.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996,1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: inet_net_pton.c,v 1.7.18.2 2008/08/26 04:42:43 #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_neta.c b/freebsd-userspace/lib/libc/inet/inet_neta.c index e76791a4..72ac549f 100644 --- a/freebsd-userspace/lib/libc/inet/inet_neta.c +++ b/freebsd-userspace/lib/libc/inet/inet_neta.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996,1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: inet_neta.c,v 1.2.18.1 2005/04/27 05:00:53 sra #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_netof.c b/freebsd-userspace/lib/libc/inet/inet_netof.c index 08d880d6..8931c30f 100644 --- a/freebsd-userspace/lib/libc/inet/inet_netof.c +++ b/freebsd-userspace/lib/libc/inet/inet_netof.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -35,6 +33,8 @@ static const char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_network.c b/freebsd-userspace/lib/libc/inet/inet_network.c index d7ad37c1..254db41a 100644 --- a/freebsd-userspace/lib/libc/inet/inet_network.c +++ b/freebsd-userspace/lib/libc/inet/inet_network.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -35,6 +33,8 @@ static const char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_ntoa.c b/freebsd-userspace/lib/libc/inet/inet_ntoa.c index 4d36ab9f..f5d69fac 100644 --- a/freebsd-userspace/lib/libc/inet/inet_ntoa.c +++ b/freebsd-userspace/lib/libc/inet/inet_ntoa.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /*- * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +34,8 @@ static const char rcsid[] = "$Id: inet_ntoa.c,v 1.1.352.1 2005/04/27 05:00:54 sr #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_ntop.c b/freebsd-userspace/lib/libc/inet/inet_ntop.c index 62d4ba7a..6d210279 100644 --- a/freebsd-userspace/lib/libc/inet/inet_ntop.c +++ b/freebsd-userspace/lib/libc/inet/inet_ntop.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: inet_ntop.c,v 1.3.18.2 2005/11/03 23:02:22 mar #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/inet_pton.c b/freebsd-userspace/lib/libc/inet/inet_pton.c index db15551f..ae650990 100644 --- a/freebsd-userspace/lib/libc/inet/inet_pton.c +++ b/freebsd-userspace/lib/libc/inet/inet_pton.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996,1999 by Internet Software Consortium. @@ -23,6 +21,7 @@ static const char rcsid[] = "$Id: inet_pton.c,v 1.3.18.2 2005/07/28 07:38:07 mar #include __FBSDID("$FreeBSD$"); +#include "port_before.h" #include #include #include diff --git a/freebsd-userspace/lib/libc/inet/nsap_addr.c b/freebsd-userspace/lib/libc/inet/nsap_addr.c index 3efd1e0f..29474729 100644 --- a/freebsd-userspace/lib/libc/inet/nsap_addr.c +++ b/freebsd-userspace/lib/libc/inet/nsap_addr.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-1999 by Internet Software Consortium. @@ -23,6 +21,8 @@ static const char rcsid[] = "$Id: nsap_addr.c,v 1.3.18.2 2005/07/28 07:38:08 mar #include __FBSDID("$FreeBSD$"); +#include "port_before.h" + #include #include #include diff --git a/freebsd-userspace/rtems/syslog.c b/freebsd-userspace/rtems/syslog.c index 832d1ffd..10a75a61 100644 --- a/freebsd-userspace/rtems/syslog.c +++ b/freebsd-userspace/rtems/syslog.c @@ -1,5 +1,3 @@ -#include "port_before.h" - /* * RTEMS version of syslog and associated routines */ -- cgit v1.2.3