pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/devel/generate



> On Tue, May 20, 2008 at 10:12:55PM +0300, Aleksey Cheusov wrote:
 >> STRDUP(3)            Linux Programmer's Manual                 STRDUP(3)

> ...

> #if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
> /* Duplicate S, returning an identical malloc'd string.  */
> extern char *strdup (__const char *__s)
> __THROW __attribute_malloc__ __nonnull ((1));
> #endif

#ifdef _GNU_SOURCE
# undef  _BSD_SOURCE
# define _BSD_SOURCE    1
#endif

#if (!defined __STRICT_ANSI__ && !defined _ISOC99_SOURCE && \
     !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE && \
     !defined _XOPEN_SOURCE && !defined _XOPEN_SOURCE_EXTENDED && \
     !defined _BSD_SOURCE && !defined _SVID_SOURCE)
# define _BSD_SOURCE    1
# define _SVID_SOURCE   1
#endif

#ifdef  _BSD_SOURCE
# define __USE_BSD      1
#endif

#ifdef  _SVID_SOURCE
# define __USE_SVID     1
#endif

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index