Path: blob/main/comms/echolinux/files/patch-echogui_testgui__main.c
16461 views
--- echogui/testgui_main.c.orig 2006-02-24 20:23:37 UTC1+++ echogui/testgui_main.c2@@ -13,10 +13,10 @@ $Log$3#include <sys/types.h>4#include <sys/time.h>5#include <unistd.h>6-#include <linux/soundcard.h>7+#include <sys/soundcard.h>8#include <sys/ioctl.h>9#include <fcntl.h>10-#include <X11/forms.h>11+#include <forms.h>12#include <string.h>13#include <math.h>14#include <pthread.h>15@@ -33,6 +33,7 @@ extern int atClose(FL_FORM *, void *);16extern void dblNodeList(FL_OBJECT *, long);17extern void getlist(FL_OBJECT *, long);18extern int searchClose(FL_FORM *, void *);19+extern int serverInit();2021FILE *gpfd;2223@@ -111,7 +112,7 @@ int main(int argc, char *argv[])24close(controlInPipe[1]);25close(controlInPipe[0]);2627- execlp("echolinux", "echolinux", 0, 0);28+ execlp("echolinux", "echolinux", 0, NULL);29printf("We didn't execute execlp().\n");30}31}323334