4b48e335d6
-Wall with the gcc in NetBSD 5.1, i.e. gcc 4.1.3. Fixes prompted by reports that a build outside of pkgsrc for "64-bit Linux" (amd64) but using this set of patches, gets a segfault, and this fixes that problem. Bump pkgrevision.
17 lines
437 B
Text
17 lines
437 B
Text
$NetBSD: patch-ak,v 1.2 2012/01/25 09:56:08 he Exp $
|
|
|
|
A number of changes to make this build with no warnings under -Wall.
|
|
|
|
--- tftpyale.h.orig 1995-03-20 20:19:10.000000000 +0000
|
|
+++ tftpyale.h
|
|
@@ -24,6 +24,10 @@ extern int dfltDebugLevel;
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
+#elif HAVE_STRERROR
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
+#include <errno.h>
|
|
#else /* not sane unix */
|
|
|
|
# ifdef __STDC__
|