1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-11 10:19:03 +00:00

Change __BSD_SOURCE references to _BSD_SOURCE. The __FAVOR_BSD and __USE_BSD have double underscores in front, the *_SOURCE only have one.

This commit is contained in:
kris
2007-01-26 22:32:42 +00:00
parent 81cb9193e8
commit 4cbb311bc4
4 changed files with 4038 additions and 3785 deletions

7809
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -688,7 +688,7 @@ AC_CACHE_CHECK(if struct icmp exists, ac_cv_struct_icmp_exists,
# include <netinet/in.h> # include <netinet/in.h>
# define __USE_BSD # define __USE_BSD
# define __FAVOR_BSD # define __FAVOR_BSD
# define __BSD_SOURCE # define _BSD_SOURCE
# include <netinet/ip.h> # include <netinet/ip.h>
# include <netinet/ip_icmp.h>], # include <netinet/ip_icmp.h>],
[unsigned int i = sizeof(struct icmp)], [unsigned int i = sizeof(struct icmp)],
@@ -706,7 +706,7 @@ AC_CACHE_CHECK(if struct ip exists, ac_cv_struct_ip_exists,
# include <netinet/in.h> # include <netinet/in.h>
# define __USE_BSD # define __USE_BSD
# define __FAVOR_BSD # define __FAVOR_BSD
# define __BSD_SOURCE # define _BSD_SOURCE
# include <netinet/ip.h>], # include <netinet/ip.h>],
[unsigned int i = sizeof(struct ip)], [unsigned int i = sizeof(struct ip)],
ac_cv_struct_ip_exists=yes, ac_cv_struct_ip_exists=yes,
@@ -723,7 +723,7 @@ AC_CACHE_CHECK(if struct ip has ip_sum member, ac_cv_ip_has_ip_sum,
# include <netinet/in.h> # include <netinet/in.h>
# define __USE_BSD # define __USE_BSD
# define __FAVOR_BSD # define __FAVOR_BSD
# define __BSD_SOURCE # define _BSD_SOURCE
# include <netinet/ip.h> # include <netinet/ip.h>
# include <netinet/ip_icmp.h>], # include <netinet/ip_icmp.h>],
[unsigned int i = sizeof(((struct ip *)0)->ip_sum)], [unsigned int i = sizeof(((struct ip *)0)->ip_sum)],

4
nmap.h
View File

@@ -166,8 +166,8 @@ void *realloc();
#ifndef __USE_BSD #ifndef __USE_BSD
#define __USE_BSD #define __USE_BSD
#endif #endif
#ifndef __BSD_SOURCE #ifndef _BSD_SOURCE
#define __BSD_SOURCE #define _BSD_SOURCE
#endif #endif
/* BSDI needs this to insure the correct struct ip */ /* BSDI needs this to insure the correct struct ip */

View File

@@ -146,8 +146,8 @@ void *realloc();
#ifndef __FAVOR_BSD #ifndef __FAVOR_BSD
#define __FAVOR_BSD 1 #define __FAVOR_BSD 1
#endif #endif
#ifndef __BSD_SOURCE #ifndef _BSD_SOURCE
#define __BSD_SOURCE 1 #define _BSD_SOURCE 1
#endif #endif
#ifndef __USE_BSD #ifndef __USE_BSD
#define __USE_BSD 1 #define __USE_BSD 1