1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add #include <limits.h> to include/lzo/lzodefs.h to fix build issues

on some architectures, for instance, i386, that would otherwise
leave ULONG_MAX undefined.

Bug is reported upstream.

Reported by: Randy Bush
This commit is contained in:
Matthias Andree 2014-06-27 06:37:24 +00:00
parent 681acef0a3
commit f7fdb8279d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359461
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= lzo2
PORTVERSION= 2.07
PORTREVISION= 1
CATEGORIES= archivers devel
MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \
LOCAL/mandree

View File

@ -0,0 +1,11 @@
--- ./include/lzo/lzodefs.h.orig 2014-06-25 15:47:13.000000000 +0200
+++ ./include/lzo/lzodefs.h 2014-06-27 06:31:33.000000000 +0200
@@ -29,6 +29,8 @@
#ifndef __LZODEFS_H_INCLUDED
#define __LZODEFS_H_INCLUDED 1
+#include <limits.h>
+
#if defined(__CYGWIN32__) && !defined(__CYGWIN__)
# define __CYGWIN__ __CYGWIN32__
#endif