pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[updated patch] fix build error for graphics/sane-backends on Linux
Hi,
with the current version of patch-sanei_sanei__ir.c removes an
#include <values.h>
On NetBSD 6, this does not hurt, but on Linux, now the definitions of
INT_MIN and DBL_MIN are missing.
Attached is an updated patch with instead replaces <values.h> with
<limits.h> and <float.h>. Fixes build on Linux, apparently does not hurt
on NetBSD 6.
Regards
Matthias Ferdinand
$NetBSD: patch-sanei_sanei__ir.c,v 1.2 2015/10/27 11:29:35 wiz Exp $
Remove unportable header inclusion.
https://alioth.debian.org/tracker/index.php?func=detail&aid=315208&group_id=30186&atid=410366
--- sanei/sanei_ir.c.orig 2015-09-29 01:10:43.000000000 +0000
+++ sanei/sanei_ir.c
@@ -29,7 +29,8 @@
#include <stdlib.h>
#include <string.h>
-#include <values.h>
+#include <limits.h>
+#include <float.h>
#include <math.h>
#define BACKEND_NAME sanei_ir /* name of this module for debugging */
Home |
Main Index |
Thread Index |
Old Index