OSDN Git Service

[Refactor] #37353 ULTRIX のプリプロを削除 / Removed preprocessor ULTRIX
authorHourier <hourier@users.sourceforge.jp>
Sun, 26 Jan 2020 14:18:14 +0000 (23:18 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 26 Jan 2020 14:18:14 +0000 (23:18 +0900)
src/h-config.h
src/h-system.h
src/util.c

index ed0c49a..0069f79 100644 (file)
 #endif
 
 /*
- * OPTION: Compile on an ultrix/4.2BSD/Dynix/etc. version of UNIX,
- * Do not define this if you are on any kind of SunOS.
- */
-#ifndef ULTRIX
-/* #define ULTRIX */
-#endif
-
-
-/*
- * Extract the "ULTRIX" flag from the compiler
- */
-#if defined(ultrix) || defined(Pyramid)
-# ifndef ULTRIX
-#  define ULTRIX
-# endif
-#endif
-
-/*
  * Extract the "WINDOWS" flag from the compiler
  */
 #if defined(_Windows) || defined(__WINDOWS__) || \
  * Note that this is only relevant for "SET_UID" machines.
  */
 #if defined(SET_UID) && !defined(HAVE_CONFIG_H)
-# if !defined(ULTRIX) && !defined(ISC)
+# if !defined(ISC)
 #  define HAVE_USLEEP
 # endif
 #endif
index b4fba2c..1387ba0 100644 (file)
@@ -46,9 +46,7 @@
 #  include <sys/time.h>
 # endif
 
-# if !defined(ULTRIX)
 #  include <sys/timeb.h>
-# endif
 
 #endif /* SET_UID */
 
index 480b606..b26f9a8 100644 (file)
@@ -855,7 +855,7 @@ errr fd_chop(int fd, huge n)
        /* Verify the fd */
        if (fd < 0) return -1;
 
-#if defined(ULTRIX) || defined(NeXT)
+#if defined(NeXT)
        /* Truncate */
        ftruncate(fd, n);
 #endif