"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "portability.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.

portability.h  (libpcap-1.10.0):portability.h  (libpcap-1.10.1)
skipping to change at line 115 skipping to change at line 115
extern int pcap_asprintf(char **, PCAP_FORMAT_STRING(const char *), ...) extern int pcap_asprintf(char **, PCAP_FORMAT_STRING(const char *), ...)
PCAP_PRINTFLIKE(2, 3); PCAP_PRINTFLIKE(2, 3);
#endif #endif
#ifdef HAVE_VASPRINTF #ifdef HAVE_VASPRINTF
#define pcap_vasprintf vasprintf #define pcap_vasprintf vasprintf
#else #else
extern int pcap_vasprintf(char **, const char *, va_list ap); extern int pcap_vasprintf(char **, const char *, va_list ap);
#endif #endif
/* For Solaris before 11. */
#ifndef timeradd
#define timeradd(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
if ((result)->tv_usec >= 1000000) { \
++(result)->tv_sec; \
(result)->tv_usec -= 1000000; \
} \
} while (0)
#endif /* timeradd */
#ifndef timersub
#define timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
#endif /* timersub */
#ifdef HAVE_STRTOK_R #ifdef HAVE_STRTOK_R
#define pcap_strtok_r strtok_r #define pcap_strtok_r strtok_r
#else #else
#ifdef _WIN32 #ifdef _WIN32
/* /*
* Microsoft gives it a different name. * Microsoft gives it a different name.
*/ */
#define pcap_strtok_r strtok_s #define pcap_strtok_r strtok_s
#else #else
/* /*
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 lines changed or added

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