summaryrefslogtreecommitdiff
path: root/audio/timidity/patches/patch-ac
blob: 5b3f5b567a0f0a01bf89093b42e2776179e6d1ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ac,v 1.5 2012/07/08 09:51:31 wiz Exp $

Unconditionally include errno.h since extern int errno does not
conform to POSIX in general.

--- timidity/timidity.h.orig	2005-12-07 19:35:02.000000000 +0000
+++ timidity/timidity.h
@@ -449,10 +449,7 @@ typedef double FLOAT_T;
 
 #include <stdio.h>
 
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif /* HAVE_ERRNO_H */
-extern int errno;
 
 #ifdef HAVE_MACHINE_ENDIAN_H
 #include <machine/endian.h> /* for __byte_swap_*() */