aboutsummaryrefslogtreecommitdiff
path: root/misc/bogosort
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-08-24 00:00:49 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-08-24 00:00:49 +0000
commit69d4a2a06ccb60a1139bef66a558327dd4968ef5 (patch)
treeb963cbe4456d1ddf9e9d7cdd28bac7444de12ad5 /misc/bogosort
parenteff1c8b81d0ea050377cb17eeb5126ba71a5bcf1 (diff)
downloadports-69d4a2a06ccb60a1139bef66a558327dd4968ef5.tar.gz
ports-69d4a2a06ccb60a1139bef66a558327dd4968ef5.zip
Don't guess declarations for things in system headers.
Notes
Notes: svn path=/head/; revision=64929
Diffstat (limited to 'misc/bogosort')
-rw-r--r--misc/bogosort/files/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/bogosort/files/patch-aa b/misc/bogosort/files/patch-aa
new file mode 100644
index 000000000000..24c651115455
--- /dev/null
+++ b/misc/bogosort/files/patch-aa
@@ -0,0 +1,18 @@
+--- error.c.orig Mon Nov 27 05:38:26 2000
++++ error.c Fri Aug 23 16:56:57 2002
+@@ -112,6 +112,7 @@
+ private_strerror (errnum)
+ int errnum;
+ {
++#ifndef __FreeBSD__
+ /*
+ * qha: modified to get round
+ * error.c:113: conflicting types for `sys_errlist'
+@@ -124,6 +125,7 @@
+ #error "I don't know what style sys_errlist you have"
+ #endif
+ extern int sys_nerr;
++#endif
+
+ if (errnum > 0 && errnum <= sys_nerr)
+ return _(sys_errlist[errnum]);