--- gpm-local-20180630.old/gpmInt.h +++ gpm-local-20180630/gpmInt.h @@ -228,7 +228,7 @@ }; /* global variables */ -struct options option; /* one should be enough for us */ +extern struct options option; /* one should be enough for us */ /* new variables */ --- gpm-local-20180630.old/main.c +++ gpm-local-20180630/main.c @@ -24,9 +24,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ********/ - #include "gpmInt.h" +struct options option; + int main(int argc, char **argv) { startup(argc,argv); /* setup configurations */ --- gpm-local-20180630.old/mouse-test.c +++ gpm-local-20180630/mouse-test.c @@ -277,6 +277,8 @@ /*----------------------------------------------------------------------------- Place the description here. -----------------------------------------------------------------------------*/ +struct options option; + int main(int argc, char **argv) { struct item *list=NULL;