#endif
#define SPT_NONE 0 /* don't use it at all */
-#define SPT_PSTAT 1 /* cover argv with title information */
-#define SPT_REUSEARGV 2 /* use pstat(PSTAT_SETCMD, ...) */
+#define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */
+#define SPT_REUSEARGV 2 /* cover argv with title information */
#ifndef SPT_TYPE
# define SPT_TYPE SPT_NONE
void
compat_init_setproctitle(int argc, char *argv[])
{
-#if SPT_TYPE == SPT_REUSEARGV
+#if defined(SPT_TYPE) && SPT_TYPE == SPT_REUSEARGV
extern char **environ;
char *lastargv = NULL;
char **envp = environ;