diff options
-rw-r--r-- | src/sys2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h index de7f6e284..48608cb18 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -553,3 +553,13 @@ enum } \ while (0) #endif + +#ifndef EOVERFLOW +# define EOVERFLOW EINVAL +#endif + +#if ! HAVE_FSEEKO && ! defined fseeko +# define fseeko(s, o, w) ((o) == (long) (o) \ + ? fseek ((s), (o), (w)) \ + : (errno = EOVERFLOW, -1)) +#endif |