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  
    327327#include "util-path.h"
    328328#include "util-conf.h"
    329329
     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*/
    330338size_t strlcat(char *, const char *src, size_t siz);
     339#endif /* !defined(strlcat) */
     340#ifndef strlcpy
    331341size_t strlcpy(char *dst, const char *src, size_t siz);
     342#endif /* !defined(strlcpy) */
    332343
    333344extern int coverage_unittests;
    334345extern int g_ut_modules;