summaryrefslogtreecommitdiff
path: root/comms/lirc/files/patch-daemons_lircmd.c
blob: 5d31eeee5f6281a4488a06c44f67b38d4935754b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- daemons/lircmd.c.orig	2011-03-25 22:28:18 UTC
+++ daemons/lircmd.c
@@ -277,9 +277,9 @@ setup_error:
 	return -1;
 }
 
+#ifdef __linux__
 void write_uinput(__u16 type, __u16 code, __s32 value)
 {
-#ifdef __linux__
 	struct input_event event;
 
 	memset(&event, 0, sizeof(event));
@@ -299,8 +299,8 @@ void write_uinput(__u16 type, __u16 code, __s32 value)
 			syslog(LOG_ERR, "%m");
 		}
 	}
-#endif
 }
+#endif
 
 void msend(int dx, int dy, int dz, int rep, int buttp, int buttr)
 {