The struct is defined outside the MAIN_PROG.

I am wondering why the same code has been successfully compiled in AIX and is working fine. The problem is in Linux, I'm getting the compile error in Linux.