openbsd-ports/lang/duktape/patches/patch-src_duk_config_h
fcambus edb69b9511 Give duktape a chance to build on sparc64.
We do have inttypes.h, but gcc-4.2.1 doesn't default to C99 and
thus doesn't #define __STDC_VERSION__ 199901L.

Same patch as the ones used in telephony/kamailio and textproc/calibre.

Pointed out by jca@ a while ago, thanks!
2018-08-06 10:26:34 +00:00

20 lines
502 B
Plaintext

$OpenBSD: patch-src_duk_config_h,v 1.1 2018/08/06 10:26:34 fcambus Exp $
We do have inttypes.h, but gcc-4.2.1 doesn't default to C99 and
thus doesn't #define __STDC_VERSION__ 199901L.
Index: src/duk_config.h
--- src/duk_config.h.orig
+++ src/duk_config.h
@@ -1553,6 +1553,10 @@
#define DUK_F_HAVE_INTTYPES
#endif
+#ifndef DUK_F_HAVE_INTTYPES
+#define DUK_F_HAVE_INTTYPES
+#endif
+
/* Basic integer typedefs and limits, preferably from inttypes.h, otherwise
* through automatic detection.
*/