Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>

*** 26,35 **** --- 26,36 ---- * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * Copyright 2010 Nexenta Systems, Inc. Al rights reserved. + * Copyright 2014 Garrett D'Amore <garrett@damore.org> */ #ifndef _TIME_H #define _TIME_H
*** 369,378 **** --- 370,396 ---- #endif /* __STDC__ */ #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT)... */ + + #if defined(_XPG7) || !defined(_STRICT_SYMBOLS) + + #ifndef _LOCALE_T + #define _LOCALE_T + typedef struct locale *locale_t; + #endif + + #if defined(__STDC__) + extern size_t strftime_l(char *_RESTRICT_KYWD, size_t, + const char *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD, locale_t); + #else /* __STDC__ */ + extern size_t strftime_l(); + #endif /* __STDC__ */ + + #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */ + #ifdef __cplusplus } #endif #endif /* _TIME_H */