| 1 | If your compiler does not recognize ANSI C headers,
|
|---|
| 2 | compile with KR_headers defined: either add -DKR_headers
|
|---|
| 3 | to the definition of CFLAGS in the makefile, or insert
|
|---|
| 4 |
|
|---|
| 5 | #define KR_headers
|
|---|
| 6 |
|
|---|
| 7 | at the top of f2c.h and fmtlib.c .
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | If you have a really ancient K&R C compiler that does not understand
|
|---|
| 11 | void, add -Dvoid=int to the definition of CFLAGS in the makefile.
|
|---|
| 12 |
|
|---|
| 13 | If you use a C++ compiler, first create a local f2c.h by appending
|
|---|
| 14 | f2ch.add to the usual f2c.h, e.g., by issuing the command
|
|---|
| 15 | make f2c.h
|
|---|
| 16 | which assumes f2c.h is installed in /usr/include .
|
|---|
| 17 |
|
|---|
| 18 | If your system lacks /usr/include/fcntl.h , then you
|
|---|
| 19 | should simply create an empty fcntl.h in this directory.
|
|---|
| 20 | If your compiler then complains about creat and open not
|
|---|
| 21 | having a prototype, compile with OPEN_DECL defined.
|
|---|
| 22 | On many systems, open and creat are declared in fcntl.h .
|
|---|
| 23 |
|
|---|
| 24 | If your system has /usr/include/fcntl.h, you may need to add
|
|---|
| 25 | -D_POSIX_SOURCE to the makefile's definition of CFLAGS.
|
|---|
| 26 |
|
|---|
| 27 | If your system's sprintf does not work the way ANSI C
|
|---|
| 28 | specifies -- specifically, if it does not return the
|
|---|
| 29 | number of characters transmitted -- then insert the line
|
|---|
| 30 |
|
|---|
|
|---|