[go: up one dir, main page]

File: so_eval.diff

package info (click to toggle)
coin3 3.1.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 48,344 kB
  • ctags: 70,042
  • sloc: cpp: 314,328; ansic: 15,927; sh: 13,635; makefile: 8,780; perl: 2,149; lex: 1,302; lisp: 1,247; yacc: 184; xml: 175; sed: 68
file content (27 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
flex 2.5.4 generates non-portable code (it include unistd.h). The
patch below fixes this problem. See evaluator.l for instructions.

 pederb, 20040628

Index: so_eval.ic
===================================================================
RCS file: /export/cvsroot/Coin/src/engines/so_eval.ic,v
retrieving revision 1.3
diff -u -r1.3 so_eval.ic
--- so_eval.ic	28 Jun 2004 13:22:19 -0000	1.3
+++ so_eval.ic	28 Jun 2004 13:31:56 -0000
@@ -26,8 +26,13 @@
 #define YY_FLEX_MINOR_VERSION 5
 
 #include <stdio.h>
-#include <unistd.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
 
 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
 #ifdef c_plusplus