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:
@@ -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
4
nmap.h
@@ -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 */
|
||||||
|
|||||||
4
tcpip.h
4
tcpip.h
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user