pkgsrc/audio/flite/patches/patch-ad
rillig ba7f5723d7 One source file defines "const" to expand to nothing -- and includes
system headers before and after that definition. Luckily, Solaris is
quite strict about that, since it defines getopt() in three different
header files. And I always thought that this redundancy wasn't useful.
2007-01-21 04:39:14 +00:00

18 lines
527 B
Text

$NetBSD: patch-ad,v 1.1 2007/01/21 04:39:14 rillig Exp $
Tags: for-upstream
The standard headers must be included before the behavior gets undefined
by the following macro definition.
--- tools/find_sts_main.c.orig 2005-01-01 15:04:43.000000000 +0100
+++ tools/find_sts_main.c 2007-01-21 04:36:17.750982588 +0100
@@ -40,6 +40,8 @@
#include <stdio.h>
#include <math.h>
#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
/* To allow some normally const fields to manipulated during building */
#define const