aboutsummaryrefslogtreecommitdiff
path: root/cad/linuxcnc-devel/files/patch-src_hal_drivers_hal__ppmc.c
blob: 7649b34debcc21eb17f90fc9b56bbd3688518864 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/hal/drivers/hal_ppmc.c.orig	2016-06-25 02:19:12 UTC
+++ src/hal/drivers/hal_ppmc.c
@@ -81,6 +81,9 @@
 MODULE_AUTHOR("John Kasunich");
 MODULE_DESCRIPTION("HAL driver for Universal PWM Controller");
 MODULE_LICENSE("GPL");
+
+#ifdef __linux__
+
 int port_addr[MAX_BUS] = { 0x378, [1 ... MAX_BUS-1] = -1 };
     /* default, 1 bus at 0x0378 */
 hal_parport_t port_registration[MAX_BUS];
@@ -2428,3 +2431,4 @@ static void WrtMore(unsigned char byte, 
     return;
 }
 
+#endif