summaryrefslogtreecommitdiff
path: root/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'machdep.c')
-rw-r--r--machdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/machdep.c b/machdep.c
index 2bcf3174..6b3d473e 100644
--- a/machdep.c
+++ b/machdep.c
@@ -46,7 +46,10 @@ static const char rcsid[] _U_ =
#if !defined(HAVE_SNPRINTF)
int snprintf(char *, size_t, const char *, ...)
- __attribute__((format(printf, 3, 4)));
+#ifdef __ATTRIBUTE___FORMAT_OK
+ __attribute__((format(printf, 3, 4)))
+#endif /* __ATTRIBUTE___FORMAT_OK */
+ ;
#endif /* !defined(HAVE_SNPRINTF) */
#endif /* __osf__ */