Ticket #42858: patch-src-suricata-common.h2.diff
File patch-src-suricata-common.h2.diff, 829 bytes (added by jul_bsd@…, 10 years ago) |
---|
-
src/suricata-common.h
old new 327 327 #include "util-path.h" 328 328 #include "util-conf.h" 329 329 330 #ifndef strlcat 331 /* 332 * On OS X (and probably some other systems aswell), strlcat/strlcpy might be 333 * implemented as a macro. If this macro is defined while we're including this 334 * header, strlcat is already declared and trying to re-declare it with the 335 * following line *will* fail, because the macro will expand to something 336 * that's not a valid function name. 337 */ 330 338 size_t strlcat(char *, const char *src, size_t siz); 339 #endif /* !defined(strlcat) */ 340 #ifndef strlcpy 331 341 size_t strlcpy(char *dst, const char *src, size_t siz); 342 #endif /* !defined(strlcpy) */ 332 343 333 344 extern int coverage_unittests; 334 345 extern int g_ut_modules;