File: kfreebsd-build-fix.diff

package info (click to toggle)
libmng 1.0.10-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,396 kB
  • sloc: ansic: 78,320; pascal: 3,559; cpp: 2,624; sh: 937; makefile: 158
file content (24 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Patch to support GNU/kFreeBSD
 This patch provides fix and support for building libmng for support
 GNU/kFreeBSD.
Author: Aurelien Jarno <aurel32@debian.org>
Bug-Debian: http://bugs.debian.org/314696
Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3015142&group_id=5635&atid=105635
Origin: vendor
Last-Update: 2010-06-12

--- libmng-1.0.10.orig/libmng_types.h	2007-04-20 14:11:59.000000000 +0530
+++ libmng-1.0.10/libmng_types.h	2010-06-12 14:44:21.000000000 +0530
@@ -178,7 +178,11 @@
 #ifndef ZLIB_DLL
 #undef FAR
 #endif
-#include <lcms.h>
+#if defined(WIN32) || defined(linux) || defined(__GNU__) || defined(__FreeBSD_kernel__)   /* different header locations */
+#include "lcms.h"
+#else
+#include "lcms/lcms.h"
+#endif
 #endif /* MNG_INCLUDE_LCMS */
 
 #ifdef MNG_INCLUDE_IJG6B               /* IJG's jpgsrc6b */