Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1a5f99f9b545d78a7c9354f6f10162fb6fd42653
parent 7e89111010ad51dedb0038a052d4991f06e24944
Author: Alan Post <>
Date:   Sat, 24 Aug 2019 07:50:44 -0600

include unistd.h in exit.h to declare _exit.

_exit(2) is declared in unistd.h.  Instead of redeclaring it in
exit.h, include that system header to get the correct function

Mexit.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exit.h b/exit.h @@ -1,6 +1,6 @@ #ifndef EXIT_H #define EXIT_H -extern void _exit(); +#include <unistd.h> #endif