freebsd-ports/audio/xoscope/files/patch-config.h.in
Diane Bruce 2611a9dec9 - xoscope is a digital oscilloscope using input from a sound card or EsounD
and/or a ProbeScope/osziFOX and will soon support Bitscope hardware.
  Includes 8 signal displays, variable time scale, math, memory, measurements,
  and file save/load.
- Unfortunately will not work on amd64 due to many int vs. string coding errors.
2008-07-28 18:56:45 +00:00

21 lines
646 B
C

--- config.h.in.orig 2008-03-29 22:30:23.000000000 -0400
+++ config.h.in 2008-03-29 22:33:00.000000000 -0400
@@ -11,6 +11,9 @@
*
*/
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
/* Define to empty if the keyword does not work. */
#undef const
@@ -200,4 +203,8 @@
/* extra places to look for serial scopes (set to {""} to not search) */
/* ({"", "/dev/ttyS0", "/dev/ttyS1", "/dev/ttyS2", "/dev/ttyS3"}) */
+#ifdef BSD
+#define PSDEVS {"", "/dev/ttyd0", "/dev/ttyd1", "/dev/ttyd2", "/dev/ttyd3"}
+#else
#define PSDEVS {"", "/dev/ttyS0", "/dev/ttyS1", "/dev/ttyS2", "/dev/ttyS3"}
+#endif