Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/replace/replace.h

    r414 r740  
    8282# define PRIi8          "i"
    8383#endif
    84 #ifndef PRIi8
     84#ifndef PRIi16
    8585# define PRIi16         "i"
    8686#endif
    87 #ifndef PRIi8
     87#ifndef PRIi32
    8888# define PRIi32         "i"
    8989#endif
    90 #ifndef PRIi8
     90#ifndef PRIi64
    9191# define PRIi64         __PRI64_PREFIX "i"
    9292#endif
     
    122122#endif
    123123
     124#ifdef HAVE_LINUX_TYPES_H
     125/*
     126 * This is needed as some broken header files require this to be included early
     127 */
     128#include <linux/types.h>
     129#endif
     130
    124131#ifndef HAVE_STRERROR
    125132extern char *sys_errlist[];
     
    139146#define memmove rep_memmove
    140147void *rep_memmove(void *dest,const void *src,int size);
     148#endif
     149
     150#ifndef HAVE_MEMMEM
     151#define memmem rep_memmem
     152void *rep_memmem(const void *haystack, size_t haystacklen,
     153                 const void *needle, size_t needlelen);
    141154#endif
    142155
     
    278291#endif
    279292
     293
     294
    280295#ifndef HAVE_STRTOLL
    281296#define strtoll rep_strtoll
    282297long long int rep_strtoll(const char *str, char **endptr, int base);
     298#else
     299#ifdef HAVE_BSD_STRTOLL
     300#define strtoll rep_strtoll
     301long long int rep_strtoll(const char *str, char **endptr, int base);
     302#endif
    283303#endif
    284304
     
    286306#define strtoull rep_strtoull
    287307unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
     308#else
     309#ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */
     310#define strtoull rep_strtoull
     311unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
     312#endif
    288313#endif
    289314
     
    329354#define socketpair rep_socketpair
    330355/* prototype is in system/network.h */
     356#endif
     357
     358#ifndef HAVE_VDPRINTF
     359#define vdprintf rep_vdprintf
     360int rep_vdprintf(int fd, const char *format, va_list ap);
     361#endif
     362
     363#ifndef HAVE_DPRINTF
     364#define dprintf rep_dprintf
     365int rep_dprintf(int fd, const char *format, ...);
    331366#endif
    332367
     
    490525#define freeifaddrs rep_freeifaddrs
    491526/* prototype is in "system/network.h" */
     527#endif
     528
     529#ifndef HAVE_GET_CURRENT_DIR_NAME
     530#define get_current_dir_name rep_get_current_dir_name
     531char *rep_get_current_dir_name(void);
     532#endif
     533
     534#if !defined(HAVE_STRERROR_R) || !defined(STRERROR_R_PROTO_COMPATIBLE)
     535#undef strerror_r
     536#define strerror_r rep_strerror_r
     537int rep_strerror_r(int errnum, char *buf, size_t buflen);
     538#endif
     539
     540#if !defined(HAVE_CLOCK_GETTIME)
     541#define clock_gettime rep_clock_gettime
    492542#endif
    493543
     
    724774#endif
    725775
     776#ifndef HAVE_FDATASYNC
     777#define fdatasync(fd) fsync(fd)
     778#elif !defined(HAVE_DECL_FDATASYNC)
     779int fdatasync(int );
     780#endif
     781
     782/* these are used to mark symbols as local to a shared lib, or
     783 * publicly available via the shared lib API */
     784#ifndef _PUBLIC_
     785#ifdef HAVE_VISIBILITY_ATTR
     786#define _PUBLIC_ __attribute__((visibility("default")))
     787#else
     788#define _PUBLIC_
     789#endif
     790#endif
     791
     792#ifndef _PRIVATE_
     793#ifdef HAVE_VISIBILITY_ATTR
     794#  define _PRIVATE_ __attribute__((visibility("hidden")))
     795#else
     796#  define _PRIVATE_
     797#endif
     798#endif
     799
     800#ifndef HAVE_POLL
     801#define poll rep_poll
     802/* prototype is in "system/network.h" */
     803#endif
     804
    726805#endif /* _LIBREPLACE_REPLACE_H */
Note: See TracChangeset for help on using the changeset viewer.