summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2006-02-01 12:24:39 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2006-02-01 12:24:39 +0000
commit82854cc2de3f440c82a3ca36e7c195d992732a85 (patch)
tree828c08bfdc5f74deb16e3bcc38ff5c38cf2a9eb2 /include
parent6e3244afbd74d4aea8d08413b9ced93eb0a2fd9e (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/nl_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/nl_types.h b/include/nl_types.h
index e3865680bbef..e56bfb012287 100644
--- a/include/nl_types.h
+++ b/include/nl_types.h
@@ -97,6 +97,10 @@ typedef __nl_item nl_item;
__BEGIN_DECLS
nl_catd catopen(const char *, int);
+/* Work-around for old <sys/cdefs.h> */
+#ifndef __format_arg
+#define __format_arg(a) __attribute__((__format_arg__(a)))
+#endif
char *catgets(nl_catd, int, int, const char *) __format_arg(4);
int catclose(nl_catd);
__END_DECLS