Working on a project for class and I am getting an unknown type name 'EXTERN' error. I am creating system calls (which later will be accessed by library calls). For some reason, I cannot figure out why my mproc.h file is not cooperating when I try to run "make services" in usr/src/releasetools. Here is the error that I am getting :
In file included from do_getaccesslvl.c:2:
./mproc.h:16:1: error: unknown type name 'EXTERN'
EXTERN struct mproc {
^
./mproc.h:16:8: error: expected identifier or '('
EXTERN struct mproc {
^
do_getaccesslvl.c:12:16: error: incomplete definition of type 'struct mproc'
return process->level;
~~~~~~~^
./proto.h:3:8: note: forward declaration of 'struct mproc' struct
mproc;
3 errors generated. *** Error code 1
Why would EXTERN
be type name unknown? This "struct"
was defined natively by Minix. I thought perhaps I corrupted something so I went back and reverted to a previous snapshot in Oracle Virtualbox, but the error persists. Any help would be greatly appreciated.