[xiph-commits] r3719 - in liboggz/trunk: . src/tools/oggz-chop

conrad at svn.annodex.net conrad at svn.annodex.net
Tue Sep 16 02:51:58 PDT 2008


Author: conrad
Date: 2008-09-16 02:51:58 -0700 (Tue, 16 Sep 2008)
New Revision: 3719

Modified:
   liboggz/trunk/configure.ac
   liboggz/trunk/src/tools/oggz-chop/header.c
Log:
Apply patch from dryeo, "off_t not always in stdio.h"
Closes ticket:413


Modified: liboggz/trunk/configure.ac
===================================================================
--- liboggz/trunk/configure.ac	2008-09-16 09:33:49 UTC (rev 3718)
+++ liboggz/trunk/configure.ac	2008-09-16 09:51:58 UTC (rev 3719)
@@ -28,7 +28,7 @@
 
 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h inttypes.h stdlib.h string.h unistd.h])
+AC_CHECK_HEADERS([fcntl.h inttypes.h stdlib.h string.h sys/types.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_OFF_T

Modified: liboggz/trunk/src/tools/oggz-chop/header.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/header.c	2008-09-16 09:33:49 UTC (rev 3718)
+++ liboggz/trunk/src/tools/oggz-chop/header.c	2008-09-16 09:51:58 UTC (rev 3719)
@@ -1,5 +1,8 @@
 #include "config.h"
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h> /* For off_t not found in stdio.h */
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>



More information about the commits mailing list