summaryrefslogtreecommitdiff
path: root/devel/libmtp/patches/patch-src_util.c
blob: b2953171a51b35fcb973ed2a77a9a4e61e5b8869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-src_util.c,v 1.1 2016/04/09 10:09:14 richard Exp $

config.h should always be first

--- src/util.c.orig	2015-10-07 07:43:18.000000000 +0000
+++ src/util.c
@@ -22,6 +22,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#include "config.h"
 /* MSVC does not have these */
 #ifndef _MSC_VER
 #include <sys/time.h>
@@ -34,7 +35,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <string.h>
-#include "config.h"
 #include "libmtp.h"
 #include "util.h"