mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
81cb9193e8
commit
4cbb311bc4
4 changed files with 4038 additions and 3785 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
4
tcpip.h
4
tcpip.h
|
|
@ -146,8 +146,8 @@ void *realloc();
|
|||
#ifndef __FAVOR_BSD
|
||||
#define __FAVOR_BSD 1
|
||||
#endif
|
||||
#ifndef __BSD_SOURCE
|
||||
#define __BSD_SOURCE 1
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE 1
|
||||
#endif
|
||||
#ifndef __USE_BSD
|
||||
#define __USE_BSD 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue