freebsd-ports/multimedia/v4l-utils/files/patch-keytable__keytable.c
Koop Mast 45ab52dc76 Add v4l-utils 0.8.4.
This port contains a number of tools for manupilating v4l* devices.

Initial port of 0.8.3 by nox@, some polish and update to 0.8.4 by myself.
2011-06-25 19:13:25 +00:00

25 lines
658 B
C

--- ./keytable/keytable.c.orig 2011-02-09 23:04:27.000000000 +0100
+++ ./keytable/keytable.c 2011-06-03 19:08:13.000000000 +0200
@@ -28,7 +28,11 @@
#include "parse.h"
/* Default place where the keymaps will be stored */
+#ifndef __FreeBSD__
#define CFGDIR "/etc/rc_keymaps"
+#else
+#define CFGDIR PREFIX "/etc/rc_keymaps"
+#endif
struct input_keymap_entry_v2 {
#define KEYMAP_BY_INDEX (1 << 0)
@@ -137,6 +141,10 @@
"--sysdev [ir class (f. ex. rc0)]\n"
"[for using the rc0 sysdev]";
+#ifdef __FreeBSD__
+#define devname dev_name
+#endif
+
/* Static vars to store the parameters */
static char *devclass = "rc0";
static char *devname = NULL;