• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

unistd.h in A/UX

bbraun

Well-known member
Code:
#ifdef _POSIX_SOURCE
/* initial file descriptor values */
#define STDIN_FILENO    0
#define STDOUT_FILENO   1
#define STDERR_FILENO   2
_POSIX_SOURCE is undefined?

 

bbraun

Well-known member
gcc -E with all the same flags should give you the preprocessed output to help in tracking it down.

 

bbraun

Well-known member
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?

 

ChristTrekker

Well-known member
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.

 

bd1308

Well-known member
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......

 
Top