diff --git a/panda/src/testbed/pgrid.cxx b/panda/src/testbed/pgrid.cxx index 4d3e8f35ac..dd88addf4c 100644 --- a/panda/src/testbed/pgrid.cxx +++ b/panda/src/testbed/pgrid.cxx @@ -23,7 +23,11 @@ #include "string_utils.h" #include "pvector.h" +#ifdef HAVE_GETOPT #include +#else +#include "gnu_getopt.h" +#endif #define RANDFRAC (rand()/(float)(RAND_MAX))