libraw/libraw-gcc47.patch
Adrian Schröter 9db87d3ae6 Accepting request 109341 from home:dimstar:gcc47
Fix build with gcc 4.7 - Please work with upstream to resolve it in upstream code base. There is also a chance that a newer version of the package might have this fixed already.

OBS-URL: https://build.opensuse.org/request/show/109341
OBS-URL: https://build.opensuse.org/package/show/graphics/libraw?expand=0&rev=53
2012-03-15 16:38:33 +00:00

13 lines
402 B
Diff

Index: LibRaw-0.13.5/samples/dcraw_emu.cpp
===================================================================
--- LibRaw-0.13.5.orig/samples/dcraw_emu.cpp
+++ LibRaw-0.13.5/samples/dcraw_emu.cpp
@@ -27,6 +27,7 @@ it under the terms of the one of three l
#endif
#include <stdio.h>
+#include <unistd.h> // For getpagesize, read and close
#include <string.h>
#include <stdlib.h>
#include <math.h>