Instead to detect if suseconds_t exists by OS and architecture,
check it in grovel-features.sh.
;; utime(), utimes()
#-win32
(:type suseconds-t ; OAOOM warning: similar kludge in tools-for-build
;; utime(), utimes()
#-win32
(:type suseconds-t ; OAOOM warning: similar kludge in tools-for-build
- #-(and darwin ppc) "suseconds_t"
- #+(and darwin ppc) "int")
+ #+os-provides-suseconds-t "suseconds_t"
+ #-os-provides-suseconds-t "long")
#-win32
(:structure alien-utimbuf
#-win32
(:structure alien-utimbuf
featurep os-provides-putwc
featurep os-provides-blksize-t
featurep os-provides-putwc
featurep os-provides-blksize-t
+
+featurep os-provides-suseconds-t
DEFTYPE("off-t", off_t);
DEFTYPE("size-t", size_t);
DEFTYPE("time-t", time_t);
DEFTYPE("off-t", off_t);
DEFTYPE("size-t", size_t);
DEFTYPE("time-t", time_t);
-#if defined(LISP_FEATURE_DARWIN) && defined(LISP_FEATURE_PPC)
- /* No idea if this is an issue with PPC versions of OS X, or just
- * 10.3, but at any rate on some Darwin versions suseconds_t seems
- * to be missing... Similar kludge in sb-posix. */
- DEFTYPE("suseconds-t", int);
+#if !defined(LISP_FEATURE_OS_PROVIDES_SUSECONDS_T)
+ /* Similar kludge in sb-posix. */
+ DEFTYPE("suseconds-t", long);
#else
DEFTYPE("suseconds-t", suseconds_t);
#endif
#else
DEFTYPE("suseconds-t", suseconds_t);
#endif
--- /dev/null
+/* test to build and run so that we know if we have blksize_t */
+
+#include <sys/types.h>
+
+int main ()
+{
+ suseconds_t s = 0;
+ s = s + s;
+ return 104;
+}
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)