#include <csignal>
+#ifdef HAVE_XSETLOCALE
+# define X_LOCALE
+# include <X11/Xlocale.h>
+#else
+# ifdef HAVE_SETLOCALE
+# include <clocale>
+# endif
+#endif
+
+#ifdef HAVE_NL_LANGINFO
+# include <langinfo.h>
+#endif
+
#ifdef DISPLAY_IS_IP
/* On Solaris link with -lsocket and -lnsl */
#include <sys/types.h>
#undef CERASE /* TODO */
#define CERASE '\010' /* ^H */
-#ifdef HAVE_XSETLOCALE
-# define X_LOCALE
-# include <X11/Xlocale.h>
-#else
-# ifdef HAVE_SETLOCALE
-# include <clocale>
-# endif
-#endif
-
-#ifdef TTY_GID_SUPPORT
-# include <grp.h>
-#endif
-
/* ways to deal with getting/setting termios structure */
/* termios interface */
#include <csignal>
#include <cstring>
-#ifdef TTY_GID_SUPPORT
-# include <grp.h>
-#endif
-
#ifdef HAVE_TERMIOS_H
# include <termios.h>
#endif
+#ifdef HAVE_XSETLOCALE
+# define X_LOCALE
+# include <X11/Xlocale.h>
+#else
+# ifdef HAVE_SETLOCALE
+# include <clocale>
+# endif
+#endif
+
vector<rxvt_term *> rxvt_term::termlist;
// used to tell global functions which terminal instance is "active"
# include <X11/Xft/Xft.h>
#endif
-#ifdef HAVE_XSETLOCALE
-# define X_LOCALE
-# include <X11/Xlocale.h>
-#else
-# ifdef HAVE_SETLOCALE
-# include <clocale>
-# endif
-#endif
-
-#ifdef HAVE_NL_LANGINFO
-# include <langinfo.h>
-#endif
-
#include <inttypes.h>
#include "feature.h"