File: zlib-ifdef.patch

package info (click to toggle)
uronode 2.15-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: ansic: 6,354; sh: 289; makefile: 102
file content (23 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix zlib ifdef to ensure it builds right
Author: Dave Hibberd <d@vehibberd.com>
Last-Update: 2023-08-07

--- a/configure
+++ b/configure
@@ -74,14 +74,14 @@
 _sleep 1
 echo -n "Checking for the existence of the Zlib headers... "
 ZLIB=""
-HAVEZLIB="#undef HAVE_ZLIB"
+HAVEZLIB="#undef HAVE_ZLIB_H"
 for zlibdir in /usr/include /usr/local/include
 do
 	if [ -f $zlibdir/zlib.h ]
 	then
 		echo $zlibdir/zlib.h
 		ZLIB="-lz"
-		HAVEZLIB="#define HAVE_ZLIB	1"
+		HAVEZLIB="#define HAVE_ZLIB_H	1"
 	fi
 done
 if [ -z "$ZLIB" ]