mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 01:00:33 -04:00
lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more. - Accepts G-code input, drives CNC machines in response. - Active user community. - Several different GUIs available. - Compatible with many popular machine control hardware interfaces. - Supports rigid tapping, cutter compensation, and many other advanced control features. WARNING: This port is simulation-only for now. WWW: http://linuxcnc.org/
25 lines
542 B
C
25 lines
542 B
C
--- src/rtapi/rtapi_io.h.orig 2016-06-25 02:19:12 UTC
|
|
+++ src/rtapi/rtapi_io.h
|
|
@@ -18,13 +18,14 @@
|
|
|
|
#include <rtapi.h>
|
|
|
|
+#ifdef __linux__
|
|
#ifdef __KERNEL__
|
|
#include <asm/io.h>
|
|
#elif defined(__i386) || defined(__x86_64)
|
|
#include <sys/io.h>
|
|
#endif
|
|
|
|
-#if defined(__i386) || defined(__x86_64)
|
|
+#if (defined(__i386) || defined(__x86_64))
|
|
#define rtapi_inb inb
|
|
#define rtapi_inw inw
|
|
#define rtapi_inl inl
|
|
@@ -40,5 +41,6 @@
|
|
#define rtapi_outw(x,y) ((void)0)
|
|
#define rtapi_outl(x,y) ((void)0)
|
|
#endif
|
|
+#endif /* !__linux__ */
|
|
|
|
#endif
|