summaryrefslogtreecommitdiff
path: root/comms/echolinux/files/patch-echogui_testgui__main.c
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2020-08-24 14:53:12 +0000
committerDiane Bruce <db@FreeBSD.org>2020-08-24 14:53:12 +0000
commitf34877a2023513dc64f95748713da48884510096 (patch)
tree0853e03c46a7ffa41392b492da31502cb9913c71 /comms/echolinux/files/patch-echogui_testgui__main.c
parentUpdate to latest commit. (diff)
- Renamed bogus patch names
- Make build under clang11 - Fixed bogus /etc dir reference - pet portlint
Notes
Notes: svn path=/head/; revision=546089
Diffstat (limited to 'comms/echolinux/files/patch-echogui_testgui__main.c')
-rw-r--r--comms/echolinux/files/patch-echogui_testgui__main.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/comms/echolinux/files/patch-echogui_testgui__main.c b/comms/echolinux/files/patch-echogui_testgui__main.c
new file mode 100644
index 000000000000..049e153c91d7
--- /dev/null
+++ b/comms/echolinux/files/patch-echogui_testgui__main.c
@@ -0,0 +1,32 @@
+--- echogui/testgui_main.c.orig 2006-02-24 20:23:37 UTC
++++ echogui/testgui_main.c
+@@ -13,10 +13,10 @@ $Log$
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <unistd.h>
+-#include <linux/soundcard.h>
++#include <sys/soundcard.h>
+ #include <sys/ioctl.h>
+ #include <fcntl.h>
+-#include <X11/forms.h>
++#include <forms.h>
+ #include <string.h>
+ #include <math.h>
+ #include <pthread.h>
+@@ -33,6 +33,7 @@ extern int atClose(FL_FORM *, void *);
+ extern void dblNodeList(FL_OBJECT *, long);
+ extern void getlist(FL_OBJECT *, long);
+ extern int searchClose(FL_FORM *, void *);
++extern int serverInit();
+
+ FILE *gpfd;
+
+@@ -111,7 +112,7 @@ int main(int argc, char *argv[])
+ close(controlInPipe[1]);
+ close(controlInPipe[0]);
+
+- execlp("echolinux", "echolinux", 0, 0);
++ execlp("echolinux", "echolinux", 0, NULL);
+ printf("We didn't execute execlp().\n");
+ }
+ }