"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ftmacros.h" between
libpcap-1.10.0.tar.gz and libpcap-1.10.1.tar.gz

About: libpcap is a packet filter library used by tools like tcpdump.

ftmacros.h  (libpcap-1.10.0):ftmacros.h  (libpcap-1.10.1)
skipping to change at line 108 skipping to change at line 108
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
/* /*
* We turn on both _DEFAULT_SOURCE and _BSD_SOURCE to try to get * We turn on both _DEFAULT_SOURCE and _BSD_SOURCE to try to get
* the BSD u_XXX types, such as u_int and u_short, defined. We * the BSD u_XXX types, such as u_int and u_short, defined. We
* define _DEFAULT_SOURCE first, so that newer versions of GNU libc * define _DEFAULT_SOURCE first, so that newer versions of GNU libc
* don't whine about _BSD_SOURCE being deprecated; we still have * don't whine about _BSD_SOURCE being deprecated; we still have
* to define _BSD_SOURCE to handle older versions of GNU libc that * to define _BSD_SOURCE to handle older versions of GNU libc that
* don't support _DEFAULT_SOURCE. * don't support _DEFAULT_SOURCE.
*
* But, if it's already defined, don't define it, so that we don't
* get a warning of it being redefined if it's defined as, for
* example, 1.
*/ */
#define _DEFAULT_SOURCE #ifndef _DEFAULT_SOURCE
#define _BSD_SOURCE #define _DEFAULT_SOURCE
#endif
/* Avoid redefining _BSD_SOURCE if it's already defined as for ex. 1 */
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#endif #endif
#endif #endif
 End of changes. 2 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)