#define C_SWITCH_MACHINE -D_BSD
#ifdef AIX3_2
-/* -lpthread seems to be necessary for Xlib in X11R6, and should be harmless
+/* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
on older versions of X where it happens to exist. */
-#ifdef HAVE_LIBPTHREAD
-#define LIBS_MACHINE -lrts -lIM -liconv -lpthread
+#ifdef HAVE_LIBPTHREADS
+#define LIBS_MACHINE -lrts -lIM -liconv -lpthreads
#else
/* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */
#define LIBS_MACHINE -lrts -lIM -liconv