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

@@ -25,16 +25,18 @@
  */
 
 /*      Copyright (c) 1988 AT&T */
 /*        All Rights Reserved   */
 
+/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ */
 
+
 #ifndef _LANGINFO_H
 #define _LANGINFO_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.2   */
-
 #include <sys/feature_tests.h>
 #include <nl_types.h>
 
 #ifdef  __cplusplus
 extern "C" {

@@ -148,10 +150,23 @@
 char   *nl_langinfo(nl_item);   /* get a string from the database       */
 #else
 char   *nl_langinfo();          /* get a string from the database       */
 #endif
 
+#if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
+#ifndef _LOCALE_T
+#define _LOCALE_T
+typedef struct locale *locale_t;
+#endif
+
+#if defined(__STDC__)
+char    *nl_langinfo_l(nl_item, locale_t);
+#else
+char    *nl_langinfo_l();
+#endif
+#endif
+
 #ifdef  __cplusplus
 }
 #endif
 
 #endif  /* _LANGINFO_H */