Ticket #42531: patch-src-strlcatu.h.diff

File patch-src-strlcatu.h.diff, 748 bytes (added by jul_bsd@…, 10 years ago)
  • src/strlcatu.h

    old new  
    2121#ifndef __STRLCAT_H__
    2222#define __STRLCAT_H__
    2323
     24#ifndef strlcat
     25/*
     26 * On OS X (and probably some other systems aswell), strlcat might be
     27 * implemented as a macro. If this macro is defined while we're including this
     28 * header, strlcat is already declared and trying to re-declare it with the
     29 * following line *will* fail, because the macro will expand to something
     30 * that's not a valid function name.
     31 */
    2432size_t strlcat(char *, const char *, size_t);
     33#endif /* !defined(strlcat) */
    2534
    2635#endif /* __STRLCAT_H__ */