brenns10 / lsh

Simple shell implementation. Tutorial here ->
http://brennan.io/2015/01/16/write-a-shell-in-c/
The Unlicense
1.47k stars 340 forks source link

Update main.c #9

Closed kkmzero closed 6 years ago

kkmzero commented 6 years ago

In case of Error:

main.c: In function 'lsh_launch':
main.c:103:3: error: unknown type name 'pid_t'
   pid_t pid;
   ^

"In older Posix standards, pid_t was only defined in <sys/types.h>, but since Posix.1-2001 (Issue 7) it is also in . However, in order to get definitions in Posix.1-2001, you must define an appropriate feature test macro before including any standard header file."

brenns10 commented 6 years ago

Thanks, I never knew that!