summaryrefslogtreecommitdiff
path: root/graphics/gphoto/patches/patch-ba
blob: c0e4ab2f6432a06bbf005acc8cedef01434a4075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ba,v 1.2 2006/05/12 12:26:59 joerg Exp $

--- src/util.c.orig	2000-03-06 21:23:06.000000000 +0000
+++ src/util.c
@@ -11,8 +11,7 @@
 #include <errno.h>
 #include <sys/dir.h>
 #include <dirent.h>
-#ifdef __FreeBSD__
-#else
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 #include <sys/resource.h>
 #endif
 #ifdef linux
@@ -257,7 +256,7 @@ void save_image (char *filename, struct 
 	else
 	{
 		snprintf(errormsg,1024,
-"The image couldn't be saved to %s because of the following error: 
+"The image couldn't be saved to %s because of the following error: \n\
  %s",filename,sys_errlist[errno]);
 		error_dialog(errormsg);
 	}