commit f77d12f8d8a822aae41b835c0cca050928c58221 from: Neven Sajko via: David du Colombier <0intro@gmail.com> date: Thu Jan 02 15:22:53 2020 UTC cmd/rc: fix declarations of some externally linked variables Change-Id: If8fe1afecb9fe55f85e8e5af37521b83e787d718 commit - ab6f1aeac761178fb70863681eab9e681aa3f379 commit + f77d12f8d8a822aae41b835c0cca050928c58221 blob - 06d2991f55d4cd25768d91598b825c905cd60398 blob + 06cfd64e4dd5fee2fc8cafbab26f59a396633b1b --- src/cmd/rc/exec.h +++ src/cmd/rc/exec.h @@ -67,7 +67,7 @@ struct builtin{ }; extern struct builtin Builtin[]; int eflagok; /* kludge flag so that -e doesn't exit in startup */ -int havefork; +extern int havefork; void execcd(void), execwhatis(void), execeval(void), execexec(void); int execforkexec(void); blob - 7778ff4c8c145e8a456fd927a0e00e3e1c608a03 blob + 46ff95106c9ab1f9e12e49dd0dd99b2f607d4fe0 --- src/cmd/rc/rc.h +++ src/cmd/rc/rc.h @@ -71,7 +71,6 @@ union code{ char *s; }; char *promptstr; -int doprompt; #define NTOK 8192 char tok[NTOK]; #define APPEND 1 @@ -126,7 +125,7 @@ int mypid; char **argp; char **args; int nerror; /* number of errors encountered during compilation */ -int doprompt; /* is it time for a prompt? */ +extern int doprompt; /* is it time for a prompt? */ /* * Which fds are the reading/writing end of a pipe? * Unfortunately, this can vary from system to system.