From 9d1a34e30b70e90a3b22cad136f1904a1d182021 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Nov 2009 14:15:34 +0100 Subject: added missing config.h includes for extended LFS support All sources which might work with large files must include config.h, to get Large File Support on 32 bit platforms. --- src/aiff.c | 1 + src/archive_api.c | 5 +++-- src/fd_util.c | 2 +- src/inotify_update.c | 1 + src/riff.c | 1 + src/song_update.c | 1 + src/update.c | 1 - 7 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/aiff.c b/src/aiff.c index d4bec628b..7fbb7eb92 100644 --- a/src/aiff.c +++ b/src/aiff.c @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" /* must be first for large file support */ #include "aiff.h" #include diff --git a/src/archive_api.c b/src/archive_api.c index 153afa361..574960558 100644 --- a/src/archive_api.c +++ b/src/archive_api.c @@ -17,6 +17,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" /* must be first for large file support */ +#include "archive_api.h" + #include #include @@ -26,8 +29,6 @@ #include #include -#include "archive_api.h" - /** * * archive_lookup is used to determine if part of pathname refers to an regular diff --git a/src/fd_util.c b/src/fd_util.c index f78b8ed8b..f2ec4fcb3 100644 --- a/src/fd_util.c +++ b/src/fd_util.c @@ -26,8 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" /* must be first for large file support */ #include "fd_util.h" -#include "config.h" #if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4)) #define _GNU_SOURCE diff --git a/src/inotify_update.c b/src/inotify_update.c index 996afb0aa..57c815250 100644 --- a/src/inotify_update.c +++ b/src/inotify_update.c @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" /* must be first for large file support */ #include "inotify_update.h" #include "inotify_source.h" #include "inotify_queue.h" diff --git a/src/riff.c b/src/riff.c index a8ea9dd42..787a63cc5 100644 --- a/src/riff.c +++ b/src/riff.c @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" /* must be first for large file support */ #include "riff.h" #include diff --git a/src/song_update.c b/src/song_update.c index 2239f9aa6..ab366b0c7 100644 --- a/src/song_update.c +++ b/src/song_update.c @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" /* must be first for large file support */ #include "song.h" #include "uri.h" #include "directory.h" diff --git a/src/update.c b/src/update.c index 2bab38d9d..bbf80d4de 100644 --- a/src/update.c +++ b/src/update.c @@ -21,7 +21,6 @@ #include "update.h" #include "database.h" #include "mapper.h" -#include "archive_list.h" #include "playlist.h" #include "event_pipe.h" #include "update.h" -- cgit v1.2.3