Use system headers. Avoid redefining macros.diff -r1.15 -r1.16 pkgsrc/devel/bcc/distinfo
(joerg)
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | $NetBSD: distinfo,v 1.15 2006/10/22 06:31:43 rillig Exp $ | 1 | $NetBSD: distinfo,v 1.16 2015/02/19 22:25:12 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (bcc.tar.gz) = 6a5c47bde0a6ddf82b65569883a5a490deb7e9b2 | 3 | SHA1 (bcc.tar.gz) = 6a5c47bde0a6ddf82b65569883a5a490deb7e9b2 | |
4 | RMD160 (bcc.tar.gz) = 6ce1a333bb4ffa36d9cea5c116925f74db64345e | 4 | RMD160 (bcc.tar.gz) = 6ce1a333bb4ffa36d9cea5c116925f74db64345e | |
5 | Size (bcc.tar.gz) = 214834 bytes | 5 | Size (bcc.tar.gz) = 214834 bytes | |
6 | SHA1 (patch-ad) = b1e609a0436132d4a7f6893cc2dab89f77cde12e | 6 | SHA1 (patch-ad) = b1e609a0436132d4a7f6893cc2dab89f77cde12e | |
7 | SHA1 (patch-ae) = ede27bbd8f1cc92fe047f1dc687881660d6b7a96 | 7 | SHA1 (patch-ae) = ede27bbd8f1cc92fe047f1dc687881660d6b7a96 | |
8 | SHA1 (patch-af) = df7c41fb3a200145496b38694de2f927d5f108a9 | 8 | SHA1 (patch-af) = df7c41fb3a200145496b38694de2f927d5f108a9 | |
9 | SHA1 (patch-ag) = 9d564f0d6ae174545e38ca8c9ca2f11f961d8688 | 9 | SHA1 (patch-ag) = 9d564f0d6ae174545e38ca8c9ca2f11f961d8688 | |
10 | SHA1 (patch-ah) = 0aafaaff3ccef5f491d3ee3de12d27f24cbcddd0 | 10 | SHA1 (patch-ah) = 0aafaaff3ccef5f491d3ee3de12d27f24cbcddd0 | |
11 | SHA1 (patch-ai) = f5b921d3a3ce810728aa7df23e19eac26c12ca29 | 11 | SHA1 (patch-ai) = f5b921d3a3ce810728aa7df23e19eac26c12ca29 | |
12 | SHA1 (patch-aj) = 6a33e364aaa99576cd5fe62c963484c8a269c026 | 12 | SHA1 (patch-aj) = 6a33e364aaa99576cd5fe62c963484c8a269c026 | |
13 | SHA1 (patch-ak) = babcde54e610609151ae525efe5ad632e2fc5de7 | 13 | SHA1 (patch-ak) = babcde54e610609151ae525efe5ad632e2fc5de7 | |
14 | SHA1 (patch-al) = 98c7508aeb54771385efd44e75d7ab765f3fd91e | 14 | SHA1 (patch-al) = 98c7508aeb54771385efd44e75d7ab765f3fd91e | |
15 | SHA1 (patch-am) = 4e3d440ce908ea27ddb7efb1bfb7261b8cb91d03 | 15 | SHA1 (patch-am) = 4e3d440ce908ea27ddb7efb1bfb7261b8cb91d03 | |
16 | SHA1 (patch-an) = 7be41aeee0d37f44783b1f3c697562c3a827646b | 16 | SHA1 (patch-an) = 7be41aeee0d37f44783b1f3c697562c3a827646b | |
17 | SHA1 (patch-aq) = 343f318437b3690fdfa15f564522ce47047e5223 | 17 | SHA1 (patch-aq) = 343f318437b3690fdfa15f564522ce47047e5223 | |
18 | SHA1 (patch-ar) = 94f5afcca0aeae1d8befafd304185e5b964acb46 | 18 | SHA1 (patch-ar) = 1ca0eef40c8c4c3b84ec1037bcb4c82ab639b821 | |
19 | SHA1 (patch-as) = b5b52b843eeaf649342813a50a042dfde8314ffd | 19 | SHA1 (patch-as) = b5b52b843eeaf649342813a50a042dfde8314ffd | |
20 | SHA1 (patch-at) = 932f6c0ad2fa5372493cd6e88806e1445cdbe448 | 20 | SHA1 (patch-at) = 932f6c0ad2fa5372493cd6e88806e1445cdbe448 | |
21 | SHA1 (patch-au) = cef1a15e3b9feba7377e55fa9ee7c812dac63e2c | 21 | SHA1 (patch-au) = cef1a15e3b9feba7377e55fa9ee7c812dac63e2c | |
22 | SHA1 (patch-av) = 7583906b59251aa99010616b3247728a2bea27a8 | 22 | SHA1 (patch-av) = 7583906b59251aa99010616b3247728a2bea27a8 | |
23 | SHA1 (patch-aw) = dc47528f06f16a835e53055135d704d166e41040 | 23 | SHA1 (patch-aw) = dc47528f06f16a835e53055135d704d166e41040 | |
24 | SHA1 (patch-ax) = 4bd5b6f2de8f04584dc188ade6ecd2cef2380976 | 24 | SHA1 (patch-ax) = 4bd5b6f2de8f04584dc188ade6ecd2cef2380976 | |
25 | SHA1 (patch-bcc_byteord.h) = 50e2b5ad77bfc7ea2d107e07a68e61a4bdc3b3ee |
@@ -1,13 +1,42 @@ | @@ -1,13 +1,42 @@ | |||
1 | $NetBSD: patch-ar,v 1.2 2006/10/10 06:56:05 uebayasi Exp $ | 1 | $NetBSD: patch-ar,v 1.3 2015/02/19 22:25:12 joerg Exp $ | |
2 | 2 | |||
3 | --- bcc/proto.h.orig 1992-11-14 16:12:34.000000000 +0100 | 3 | When this file was written, C90 was already two years old. | |
4 | No excuse to not use system headers. | |||
5 | ||||
6 | --- bcc/proto.h.orig 1992-11-14 15:12:34.000000000 +0000 | |||
4 | +++ bcc/proto.h | 7 | +++ bcc/proto.h | |
5 | @@ -381,8 +381,6 @@ void *malloc P((unsigned _nbytes)); | 8 | @@ -370,30 +370,7 @@ struct typestruct *tounsigned P((struct | |
6 | void *realloc P((void *_ptr, unsigned _nbytes)); | 9 | void typeinit P((void)); | |
7 | 10 | |||
8 | /* library - string.h */ | 11 | /* library - fcntl.h */ | |
12 | -int creat P((const char *_path, int _mode)); | |||
13 | -int open P((const char *_path, int _oflag, ...)); | |||
14 | - | |||
15 | -/* library - stdlib.h */ | |||
16 | -double atof P((const char *_str)); | |||
17 | -void exit P((int _status)); | |||
18 | -void free P((void *_ptr)); | |||
19 | -void *malloc P((unsigned _nbytes)); | |||
20 | -void *realloc P((void *_ptr, unsigned _nbytes)); | |||
21 | - | |||
22 | -/* library - string.h */ | |||
9 | -void *memcpy P((void *_t, const void *_s, unsigned _length)); | 23 | -void *memcpy P((void *_t, const void *_s, unsigned _length)); | |
10 | -void *memset P((void *_s, int _c, unsigned _nbytes)); | 24 | -void *memset P((void *_s, int _c, unsigned _nbytes)); | |
11 | char *strcat P((char *_target, const char *_source)); | 25 | -char *strcat P((char *_target, const char *_source)); | |
12 | char *strchr P((const char *_s, int _ch)); | 26 | -char *strchr P((const char *_s, int _ch)); | |
13 | int strcmp P((const char *_s1, const char *_s2)); | 27 | -int strcmp P((const char *_s1, const char *_s2)); | |
28 | -char *strcpy P((char *_target, const char *_source)); | |||
29 | -unsigned strlen P((const char *_s)); | |||
30 | -char *strncpy P((char *_target, const char *_source, unsigned _maxlength)); | |||
31 | -char *strrchr P((const char *_s, int _ch)); | |||
32 | - | |||
33 | -/* library - unistd.h */ | |||
34 | -int close P((int _fd)); | |||
35 | -int isatty P((int _fd)); | |||
36 | -long lseek P((int _fd, long _offset, int _whence)); | |||
37 | -int read P((int _fd, char *_buf, unsigned _nbytes)); | |||
38 | -int write P((int _fd, char *_buf, unsigned _nbytes)); | |||
39 | +#include <fcntl.h> | |||
40 | +#include <stdlib.h> | |||
41 | +#include <string.h> | |||
42 | +#include <unistd.h> |
$NetBSD: patch-bcc_byteord.h,v 1.1 2015/02/19 22:25:12 joerg Exp $
--- bcc/byteord.h.orig 2015-02-19 19:39:56.000000000 +0000
+++ bcc/byteord.h
@@ -2,6 +2,9 @@
/* Copyright (C) 1992 Bruce Evans */
+#undef BIG_ENDIAN
+#undef LONG_BIG_ENDIAN
+
#ifdef I8088
# define BIG_ENDIAN 0
# define LONG_BIG_ENDIAN 1 /* longs are back to front for Xenix */