aboutsummaryrefslogtreecommitdiff
path: root/cad/irsim/files/patch-aa
blob: e95c0bb4975ee02b2034b7040e307babb5aa95e7 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
*** src/irsim/fio.c.orig	Fri Jan 15 11:45:14 1993
--- src/irsim/fio.c	Sun Dec 18 13:58:41 1994
***************
*** 15,21 ****
--- 15,23 ----
  #include <stdio.h>
  #include <defs.h>
  
+ #ifndef __FreeBSD__  /* clearerr defined as macro in stdio.h */
  extern	void	clearerr();
+ #endif
  
  
  /*
*** src/utils/Export/export.c.orig	Sun Dec 23 01:15:04 1990
--- src/utils/Export/export.c	Sun Dec 18 13:52:22 1994
***************
*** 36,41 ****
--- 36,42 ----
      extern  String mktemp();
      String  outfname;
      char    syscmd[ 512 ];
+     char    name[18];
      FILE    *tmp;
      int r;
      int i;
***************
*** 46,53 ****
      signal( SIGINT, abnorm );
      signal( SIGQUIT, abnorm );
  
!     tmpname = mktemp( "/tmp/exportXXXXXX" );
!     fout = fopen( tmpname, "w", stdout );
      if( fout == NULL )
  	Crash( "can't write %s", tmpname );
      
--- 47,55 ----
      signal( SIGINT, abnorm );
      signal( SIGQUIT, abnorm );
  
!     strcpy( name, "/tmp/exportXXXXXX" );
!     tmpname = mktemp( name );
!     fout = fopen( tmpname, "w" );
      if( fout == NULL )
  	Crash( "can't write %s", tmpname );
      
*** src/irsim/gentbl.c.orig	Fri Jan 15 11:45:14 1993
--- src/irsim/gentbl.c	Sun Dec 18 18:56:39 1994
***************
*** 188,191 ****
--- 188,192 ----
  		  }
  	  }
      fprintf( out, "\n};\n" );
+     return 0;
    }