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>
|
||||
# define __USE_BSD
|
||||
# define __FAVOR_BSD
|
||||
# define __BSD_SOURCE
|
||||
# define _BSD_SOURCE
|
||||
# include <netinet/ip.h>
|
||||
# include <netinet/ip_icmp.h>],
|
||||
[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>
|
||||
# define __USE_BSD
|
||||
# define __FAVOR_BSD
|
||||
# define __BSD_SOURCE
|
||||
# define _BSD_SOURCE
|
||||
# include <netinet/ip.h>],
|
||||
[unsigned int i = sizeof(struct ip)],
|
||||
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>
|
||||
# define __USE_BSD
|
||||
# define __FAVOR_BSD
|
||||
# define __BSD_SOURCE
|
||||
# define _BSD_SOURCE
|
||||
# include <netinet/ip.h>
|
||||
# include <netinet/ip_icmp.h>],
|
||||
[unsigned int i = sizeof(((struct ip *)0)->ip_sum)],
|
||||
|
||||
4
nmap.h
4
nmap.h
@@ -166,8 +166,8 @@ void *realloc();
|
||||
#ifndef __USE_BSD
|
||||
#define __USE_BSD
|
||||
#endif
|
||||
#ifndef __BSD_SOURCE
|
||||
#define __BSD_SOURCE
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#endif
|
||||
|
||||
/* BSDI needs this to insure the correct struct ip */
|
||||
|
||||
Reference in New Issue
Block a user