Thread
unistd.h in A/UX
Hmmm, why would gcc tell me that STDERR_FILENO is undeclared when unistd.h is included in the file?
Code:
#ifdef _POSIX_SOURCE
/* initial file descriptor values */
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
gcc -E with all the same flags should give you the preprocessed output to help in tracking it down.
Looks like it may be pulling in the wrong unistd.h (gcc's) which does not have the #define in question.
gcc's unistd.h should be "correct". Where did you get your gcc? I built my gcc from the 2.7.2.3 sources using the gcc-2.7.2 patches at aux-penelope, and my unistd.h has the #ifdef _POSIX_SOURCE and the #define. If you grabbed gcc binaries from elsewhere, did you run gcc's fixincludes script?
I installed a binary, from penelope or somewhere. It's been quite some time ago. If there were instructions to run a fix script, I'd've thought I'd've done it at the time, but maybe I didn't. Guess I'll try to look up this script and how to run it.
you dont happen to own a Porsche 914 do you? I remember your handle from somewhere else......I installed a binary, from penelope or somewhere. It's been quite some time ago. If there were instructions to run a fix script, I'd've thought I'd've done it at the time, but maybe I didn't. Guess I'll try to look up this script and how to run it.