openbsd-ports/graphics/gphoto/patches/patch-ad

31 lines
881 B
Plaintext

--- ./casio/casio_qv.c.orig Wed Nov 10 18:19:06 1999
+++ ./casio/casio_qv.c Wed Nov 10 18:45:20 1999
@@ -1,5 +1,9 @@
+#include "config.h"
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <gdk_imlib.h>
#include <gdk/gdk.h>
@@ -79,7 +83,7 @@
switch(speed) {
case LIGHT: /* 115200 baud */
-#if defined(WIN32) || defined (OS2) || defined(__FreeBSD__) || defined(DOS) || defined(__linux__)
+#if defined(WIN32) || defined (OS2) || defined(BSD) || defined(DOS) || defined(__linux__)
baud = B115200;
#else
baud = B38400;
@@ -87,7 +91,7 @@
break;
case TOP: /* 57600 baud */
-#if defined(WIN32) || defined(OS2) || defined(__FreeBSD__) || defined(DOS) || defined(__linux__)
+#if defined(WIN32) || defined(OS2) || defined(BSD) || defined(DOS) || defined(__linux__)
baud = B57600;
#else