Commit 159c54fd authored by Conrad Parker's avatar Conrad Parker

Add largefile support. Closes ticket:879

From debian patch for-upstream-largefile-support.diff
This patch adds AC_SYS_LARGEFILE to configure.ac, and ensures that config.h
is correctly included in all source files.

svn path=/trunk/vorbis-tools/; revision=12185
parent fbaad2b6
...@@ -31,6 +31,8 @@ AC_PROG_LIBTOOL ...@@ -31,6 +31,8 @@ AC_PROG_LIBTOOL
ALL_LINGUAS="be cs da es fr hr hu nl ro ru sv uk" ALL_LINGUAS="be cs da es fr hr hu nl ro ru sv uk"
AM_GNU_GETTEXT AM_GNU_GETTEXT
AC_SYS_LARGEFILE
dnl -------------------------------------------------- dnl --------------------------------------------------
dnl Set build flags based on environment dnl Set build flags based on environment
dnl -------------------------------------------------- dnl --------------------------------------------------
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
* function for your platform / compiler. * function for your platform / compiler.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ao/ao.h> #include <ao/ao.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "getopt.h" #include "getopt.h"
#include "cmdline_options.h" #include "cmdline_options.h"
#include "status.h" #include "status.h"
......
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include "easyflac.h" #include "easyflac.h"
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -15,12 +15,13 @@ ...@@ -15,12 +15,13 @@
********************************************************************/ ********************************************************************/
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <stdio.h>
#include <string.h>
#include "transport.h" #include "transport.h"
#include "format.h" #include "format.h"
#include "i18n.h" #include "i18n.h"
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,12 +15,13 @@ ...@@ -15,12 +15,13 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "transport.h" #include "transport.h"
#include "i18n.h" #include "i18n.h"
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <getopt.h> #include <getopt.h>
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
** AIFF/AIFC support from OggSquish, (c) 1994-1996 Monty <xiphmont@xiph.org> ** AIFF/AIFC support from OggSquish, (c) 1994-1996 Monty <xiphmont@xiph.org>
**/ **/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
...@@ -15,10 +18,6 @@ ...@@ -15,10 +18,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <math.h> #include <math.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "audio.h" #include "audio.h"
#include "platform.h" #include "platform.h"
#include "i18n.h" #include "i18n.h"
......
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include "easyflac.h" #include "easyflac.h"
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
** and libvorbis examples, (c) Monty <monty@xiph.org> ** and libvorbis examples, (c) Monty <monty@xiph.org>
**/ **/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
** **
**/ **/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
* and libvorbis examples, (c) Monty <monty@xiph.org> * and libvorbis examples, (c) Monty <monty@xiph.org>
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
...@@ -18,10 +22,6 @@ ...@@ -18,10 +22,6 @@
#include <locale.h> #include <locale.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "platform.h" #include "platform.h"
#include "encode.h" #include "encode.h"
#include "audio.h" #include "audio.h"
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
/* Platform support routines - win32, OS/2, unix */ /* Platform support routines - win32, OS/2, unix */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "platform.h" #include "platform.h"
#include "encode.h" #include "encode.h"
......
/* resample.c: see resample.h for interesting stuff */ /* resample.c: see resample.h for interesting stuff */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* Licensed under the GNU GPL, distributed with this program. * Licensed under the GNU GPL, distributed with this program.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
********************************************************************/ ********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "theora.h" #include "theora.h"
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h> #include <errno.h>
#include <iconv.h> #include <iconv.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
* last modified: $Id: vcut.c,v 1.9 2003/09/03 07:58:05 calc Exp $ * last modified: $Id: vcut.c,v 1.9 2003/09/03 07:58:05 calc Exp $
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ogg/ogg.h> #include <ogg/ogg.h>
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
* last modified: $Id: vcedit.c,v 1.23 2003/09/03 07:58:05 calc Exp $ * last modified: $Id: vcedit.c,v 1.23 2003/09/03 07:58:05 calc Exp $
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -8,16 +8,15 @@ ...@@ -8,16 +8,15 @@
* Of limited usability on its own, but could be useful. * Of limited usability on its own, but could be useful.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <locale.h> #include <locale.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "getopt.h" #include "getopt.h"
#include "utf8.h" #include "utf8.h"
#include "i18n.h" #include "i18n.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment