--- src/bin/iclass/dialogs.c.orig	Wed Sep 23 11:45:09 1992
+++ src/bin/iclass/dialogs.c	Thu May 27 21:45:37 1999
@@ -40,12 +40,14 @@
 
 #include <stdlib.h>
 #include <string.h>
+#if __FreeBSD_cc_version < 400002
 #include <osfcn.h>
+#endif
 
 #if !defined(AIXV3) && !defined(hpux) && !(defined(sun) && OSMajorVersion >= 5)
 /* sigh, not all systems have this prototype */
 extern "C" {
-    char* getcwd(char*, int);
+    char* getcwd(char*, unsigned int);
 }
 #endif
 
