NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc] firefox59 needs a patch


I have compiled firefox59 on NetBSD 7.1._PATCH amd64 with gcc7.

I needed to patch one file:


--- throw_gcc.h.bak	2018-06-03 15:04:54.000000000 +0200
+++ throw_gcc.h	2018-06-03 15:04:23.000000000 +0200
@@ -10,6 +10,7 @@
 #include "mozilla/Attributes.h"
+#define _ISOC99_SOURCE
 #include <stdio.h>              // snprintf
 #include <string.h>             // strerror

defining _ISOC99_SOURCE in order for snprintf() to be declared in
system stdio.h (__STDC_VERSION__ is not defined by gcc when compiling
cpp files).

Since the C++ standard does not support the whole C99, I don't know what
the correct fix is (in the macro testing in system stdio.h perhaps; or
in firefox source).

But this does the trick.

        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

Home | Main Index | Thread Index | Old Index