utils/pmx/pmx-src/libf2c/patch-05-FreeBSD-off_t
raw| 1 | On FreeBSD (and maybe others) we need <sys/types.h> for off_t. |
| 2 | |
| 3 | diff -ur pmx-2.6.18.orig/libf2c/fio.h pmx-2.6.18/libf2c/fio.h |
| 4 | --- pmx-2.6.18.orig/libf2c/fio.h 2012-05-19 18:47:56.000000000 +0200 |
| 5 | +++ pmx-2.6.18/libf2c/fio.h 2012-05-19 18:50:13.501421172 +0200 |
| 6 | @@ -1,6 +1,7 @@ |
| 7 | #ifndef SYSDEP_H_INCLUDED |
| 8 | #include "sysdep1.h" |
| 9 | #endif |
| 10 | +#include <sys/types.h> /* for off_t */ |
| 11 | #include "stdio.h" |
| 12 | #ifdef WIN32 |
| 13 | extern int w32getc(FILE *f); |
| 14 |