Commit 0ecbe97f authored by Bernhard Link's avatar Bernhard Link

do not define errno, as it might be a macro already.

Errno will usually be a macro nowadays (to make use of thread local
storage), so defining it as

extern int errno;

is made by the preprocessor to:

extern int (*__errno_location ());

which luckily currently still works, but shows that is really not
what should be done, so remove the definitions. (Which also silences
a compiler warning).
parent 39b76a7b
......@@ -86,8 +86,6 @@ typedef char *XPointer;
#endif
#include <errno.h>
/* BSD 4.3 errno.h does not declare errno */
extern int errno;
/* Both error returns are checked for non-blocking I/O. */
/* Manufacture the other error code if only one exists. */
#if !defined(EWOULDBLOCK) && defined(EAGAIN)
......
......@@ -34,8 +34,6 @@
#define _GV_ERROR_H_
#include <errno.h>
/* BSD 4.3 errno.h does not declare errno */
extern int errno;
extern char* open_fail_error (int, char *, char *, int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment