--- src/s/freebsd.h.orig	Mon Apr  5 18:00:36 1999
+++ src/s/freebsd.h	Mon Apr  5 17:57:30 1999
@@ -42,7 +42,7 @@
 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
 
 #define LIBS_DEBUG
-#define LIBS_SYSTEM -lutil
+#define LIBS_SYSTEM -lutil -lcrypt -lxpg4
 #define LIBS_TERMCAP -ltermcap
 
 #define SYSV_SYSTEM_DIR
@@ -131,3 +131,6 @@
    It is already a controlling terminal of subprocess, because we did
    ioctl TIOCSCTTY.  */
 #define DONT_REOPEN_PTY
+
+/* XIM does not work very well, so the next is set (by taoka@FreeBSD.org) */
+#define X_I18N_INHIBITED
