Move type checks features/sfio to configure.ac
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 10 Jul 2017 13:38:35 +0000 (15:38 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 13 Jul 2017 10:52:45 +0000 (12:52 +0200)
The following type checks have been moved:
- off64_t
- struct stat64

configure.ac
lib/sfio/features/sfio
lib/sfio/sfhdr.h

index edb15ffbea6323ab26431462991e32c22e4771b5..21c769b53e910cc6b3646e2f573b08ff9eaf6c27 100644 (file)
@@ -404,6 +404,11 @@ AC_TYPE_PID_T
 AC_TYPE_SSIZE_T
 AC_TYPE_UID_T
 
+AC_CHECK_TYPES([
+       off64_t,
+       struct stat64,
+])
+
 dnl -----------------------------------
 dnl Checks for header files
 
index 0bfbefad1289a5495c2092d9d837cd5d7de82e92..6bc55d4949ac7f3614ad15b88bbc396a3b9c13ca 100644 (file)
@@ -6,15 +6,6 @@
 # Converted to sfio v10/01/94 by Giampiero Sierra (06/08/95).
 ##################################################################
 
-typ off64_t
-typ struct_stat64 compile{
-       #include        <sys/types.h>
-       #include        <sys/stat.h>
-       main()
-       {       struct stat64 statb;
-       }
-}end
-
 ##################################################
 # file control checks
 ##################################################
index a80eaeebfea405fcfe60dab4f5821ae56aaaab04..d29b0cc8e582fe94b16cbf244e6075a7e4566e10 100644 (file)
@@ -2,7 +2,7 @@
 /* vim:set shiftwidth=4 ts=8: */
 
 /*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property 
+ * Copyright (c) 2011 AT&T Intellectual Property
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -37,8 +37,8 @@ extern "C" {
 #define _NO_LARGEFILE64_SOURCE  1
 #endif
 #if !defined(_NO_LARGEFILE64_SOURCE) && \
-       HAVE_LSEEK64 && HAVE_STAT64 && defined(_typ_off64_t) && \
-       _typ_struct_stat64
+       HAVE_LSEEK64 && HAVE_STAT64 && defined(HAVE_OFF64_T) && \
+       HAVE_STRUCT_STAT64
 #      if !defined(_LARGEFILE64_SOURCE)
 #      define _LARGEFILE64_SOURCE     1
 #      endif