aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ivtools/files/patch-src::ComTerp::comterp.c
blob: caca0e4ce09128e8431061e36d303f37a494fc44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

$FreeBSD$

--- src/ComTerp/comterp.c.orig
+++ src/ComTerp/comterp.c
@@ -74,6 +74,7 @@
 #if __GNUC__>=3
 #include <fstream.h>
 #endif
+#include <errno.h>
 
 #define TITLE "ComTerp"
 #define STREAM_MECH
@@ -896,7 +897,7 @@
     fbuf.attach(fd);
   } else
     fbuf.attach(fileno(stdout));
-#elif (__GNUC__==3 && __GNUC_MINOR__<1) || __GNUC__>3
+#elif (__GNUC__==3 && __GNUC_MINOR__<1) || __GNUC__>3 || defined(__FreeBSD__)
   fileptr_filebuf fbuf(handler() && handler()->wrfptr() 
           ? handler()->wrfptr() : stdout, 
           ios_base::out);