tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [joerg%netbsd.org@localhost: CVS commit: pkgsrc/devel/nbpatch]
On Wed, Sep 24, 2008 at 11:34:12PM +0300, Aleksey Cheusov wrote:
> > I'd appreciate testing on all platforms to sort out the remaining
> > modernisms in this code.
> Interix-3.5
>
> gcc -D_ALL_SOURCE -D_ALL_SOURCE -Werror -D_ALL_SOURCE -I/usr/local/include
> -I/usr/local/ssl/include -D_ALL_SOURCE -DHAVE_NBCOMPAT_H=1
> -I/tmp/obj_cheusov/devel/nbpatch/work/libnbcompat -c pch.c
> pch.c: In function `best_name':
> pch.c:1497: error: `SIZE_MAX' undeclared (first use in this function)
> pch.c:1497: error: (Each undeclared identifier is reported only once
> pch.c:1497: error: for each function it appears in.)
> *** Error code 1
Right, I was wondering if any such platform remained. Does the attached
patch work for you?
Joerg
Index: common.h
===================================================================
RCS file: /home/joerg/repo/netbsd/pkgsrc/devel/nbpatch/files/common.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 common.h
--- common.h 10 Sep 2008 11:03:21 -0000 1.1.1.1
+++ common.h 8 Oct 2008 17:37:26 -0000
@@ -37,6 +37,10 @@
#include <stdint.h>
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+
#define DEBUGGING
/* constants */
Home |
Main Index |
Thread Index |
Old Index