pkgsrc/x11/motif/patches/patch-lib_Xm_Scale.c
ryoon 0738f09870 Import motif-2.3.4 as x11/motif.
The industry standard user interface toolkit for the X Window System.
This is released under LGPL 2.1.
2012-11-10 17:10:10 +00:00

14 lines
493 B
C

$NetBSD: patch-lib_Xm_Scale.c,v 1.1 2012/11/10 17:10:10 ryoon Exp $
--- lib/Xm/Scale.c.orig 2012-10-22 14:50:34.000000000 +0000
+++ lib/Xm/Scale.c
@@ -74,6 +74,9 @@ static char rcsid[] = "$TOG: Scale.c /ma
extern "C" { /* some 'locale.h' do not have prototypes (sun) */
#endif
#include <X11/Xlocale.h>
+#ifdef __DARWIN__
+#include <locale.h> /* Xlocale.h doesn't define struct lconv */
+#endif
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration */
#endif /* __cplusplus */