# if defined(_POSIX_VERSION)
# define USE_TPOSIX
# else
-# if defined(USG) || defined(linux)
+# if defined(linux)
# define USE_TERMIO
# else
# define USE_TCHARS
/* Extract the normal keymap */
keymap_norm_prepare();
-#if defined(USG)
- /* Initialize for USG Unix */
- if (initscr() == NULL) return (-1);
-#else
/* Initialize for others systems */
if (initscr() == (WINDOW*)ERR) return (-1);
-#endif
/* Activate hooks */
quit_aux = hook_quit;
/* Verify the fd */
if (fd < 0) return -1;
-#ifdef SET_UID
-
-# ifdef USG
-
-# if defined(F_ULOCK) && defined(F_LOCK)
-
- /* Un-Lock */
- if (what == F_UNLCK)
- {
- /* Unlock it, Ignore errors */
- lockf(fd, F_ULOCK, 0);
- }
-
- /* Lock */
- else
- {
- /* Lock the score file */
- if (lockf(fd, F_LOCK, 0) != 0) return 1;
- }
-
-# endif
-
-# else
-
-# if defined(LOCK_UN) && defined(LOCK_EX)
-
+#if defined(SET_UID) && defined(LOCK_UN) && defined(LOCK_EX)
/* Un-Lock */
if (what == F_UNLCK)
{
/* Lock the score file */
if (flock(fd, LOCK_EX) != 0) return 1;
}
-
-# endif
-
-# endif
-
#endif
/* Success */