pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/49551: Need to enclose HAVE_BOOLEAN in #ifndef/#endif
>Number: 49551
>Category: pkg
>Synopsis: Need to enclose HAVE_BOOLEAN in #ifndef/#endif
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 09 15:55:00 +0000 2015
>Originator: Krishnan
>Release: www/netsurf
>Organization:
gai Technologes Pvt Ltd
>Environment:
NetBSD adharaz 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
>Description:
Building netsurf broke with 'boolean' redefined error:
/usr/pkgsrc/www/netsurf/work/.buildlink/include/libmng_types.h:205:13: error: redefinition of typedef 'boolean'
/usr/pkgsrc/www/netsurf/work/.buildlink/include/jmorecfg.h:313:13: note: previous declaration of 'boolean' was here
>How-To-Repeat:
cd $PKGSRD/www/netsurf; make
>Fix:
diff --git a/usr/pkg/include/libmng_types.h b/usr/pkg/include/libmng_types.h
index 09592a5..3f4148a 100644
--- a/usr/pkg/include/libmng_types.h
+++ b/usr/pkg/include/libmng_types.h
@@ -201,9 +201,11 @@
#define JPEG_INTERNAL_OPTIONS /* for RGB_PIXELSIZE */
/* There has been a change in jpeg-9 : */
#ifndef _WIN32
-#define HAVE_BOOLEAN
+# ifndef BOOLEAN
+# define HAVE_BOOLEAN
typedef int boolean;
#endif
+#endif
#include <jpeglib.h>
#endif /* MNG_INCLUDE_IJG6B */
Home |
Main Index |
Thread Index |
Old Index