pkgsrc-Bugs archive

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

pkg/28337: firefox 1.0nb1 compile on NetBSD 1.5.3



>Number:         28337
>Category:       pkg
>Synopsis:       firefox 1.0nb1 compile on NetBSD 1.5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 17 05:43:00 +0000 2004
>Originator:     MOCHIDA Shuji
>Release:        NetBSD 1.5.3
>Organization:
NETside Technologies Inc.
>Environment:
NetBSD/i386 with 1.5.3 userland

>Description:
    firefox does not compile on NetBSD 1.5.x, which does not have stdint.h. 

>How-To-Repeat:
    compile firefox on NetBSD 1.5.3.
>Fix:
    apply below. this might be marged to patch-cd.

--- mozilla/modules/plugin/base/public/nptypes.h.ORIG   Thu Sep  2 01:59:55 2004
+++ mozilla/modules/plugin/base/public/nptypes.h        Fri Oct 15 14:00:33 2004
@@ -90,12 +90,21 @@
 #elif defined(BEOS)
   #include <inttypes.h>
 #else
+  #if defined(__NetBSD__)
+    #include <sys/param.h>
+    #if (__NetBSD_Version__ < 106000000)
+      #include <inttypes.h>
+    #else
+      #include <stdint.h>
+    #endif
+  #else
   /*
    * For those that ship a standard C99 stdint.h header file, include
    * it. Can't do the same for stdbool.h tho, since some systems ship
    * with a stdbool.h file that doesn't compile!
    */
   #include <stdint.h>
+  #endif // __NetBSD__
 
   #if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95)
     #include <stdbool.h>




Home | Main Index | Thread Index | Old Index