[dahdi-commits] tzafrir: tools/trunk r7908 - /tools/trunk/xpp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Jan 13 10:26:18 CST 2010
Author: tzafrir
Date: Wed Jan 13 10:26:15 2010
New Revision: 7908
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7908
Log:
xpp/ FreeBSD portability issues
Note that the hotplug file is intended for backward compatibility with
Centos4 and the likes. Newer systems are adviced not to install it
anyway.
(closes issue #16593)
Reported by: Max Khon
Patches:
xpp.diff uploaded by Max Khon (license 884)
Modified:
tools/trunk/xpp/Makefile
tools/trunk/xpp/astribank_allow.c
tools/trunk/xpp/astribank_hexload.c
tools/trunk/xpp/astribank_tool.c
tools/trunk/xpp/astribank_usb.c
tools/trunk/xpp/fpga_load.c
tools/trunk/xpp/mpp_funcs.c
tools/trunk/xpp/pic_loader.c
Modified: tools/trunk/xpp/Makefile
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/Makefile?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/Makefile (original)
+++ tools/trunk/xpp/Makefile Wed Jan 13 10:26:15 2010
@@ -27,7 +27,7 @@
SBINDIR = $(prefix)/sbin
DATADIR = $(datadir)/dahdi
MANDIR = $(mandir)/man8
-HOTPLUG_USB_DIR = /etc/hotplug/usb
+HOTPLUG_USB_DIR = $(sysconfdir)/hotplug/usb
PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib")
PERL_DIRS := $(shell cd perl_modules; find * -name '[A-Z]*' -type d| xargs)
PERL_MODS_PAT := *.pm $(PERL_DIRS:%=%/*.pm)
Modified: tools/trunk/xpp/astribank_allow.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_allow.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/astribank_allow.c (original)
+++ tools/trunk/xpp/astribank_allow.c Wed Jan 13 10:26:15 2010
@@ -28,6 +28,7 @@
#include <assert.h>
#include <getopt.h>
#include <time.h>
+#include <sys/types.h>
#include <arpa/inet.h>
#include <ctype.h>
#include "mpp.h"
Modified: tools/trunk/xpp/astribank_hexload.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_hexload.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/astribank_hexload.c (original)
+++ tools/trunk/xpp/astribank_hexload.c Wed Jan 13 10:26:15 2010
@@ -20,6 +20,7 @@
*
*/
+#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Modified: tools/trunk/xpp/astribank_tool.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_tool.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/astribank_tool.c (original)
+++ tools/trunk/xpp/astribank_tool.c Wed Jan 13 10:26:15 2010
@@ -26,6 +26,7 @@
#include <errno.h>
#include <assert.h>
#include <getopt.h>
+#include <sys/types.h>
#include <arpa/inet.h>
#include "mpp_funcs.h"
#include "debug.h"
Modified: tools/trunk/xpp/astribank_usb.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_usb.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/astribank_usb.c (original)
+++ tools/trunk/xpp/astribank_usb.c Wed Jan 13 10:26:15 2010
@@ -21,6 +21,8 @@
*/
#define _GNU_SOURCE /* for memrchr() */
+#include <unistd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Modified: tools/trunk/xpp/fpga_load.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/fpga_load.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/fpga_load.c (original)
+++ tools/trunk/xpp/fpga_load.c Wed Jan 13 10:26:15 2010
@@ -20,6 +20,8 @@
*
*/
+#include <unistd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
Modified: tools/trunk/xpp/mpp_funcs.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/mpp_funcs.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/mpp_funcs.c (original)
+++ tools/trunk/xpp/mpp_funcs.c Wed Jan 13 10:26:15 2010
@@ -20,6 +20,7 @@
*
*/
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Modified: tools/trunk/xpp/pic_loader.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/pic_loader.c?view=diff&rev=7908&r1=7907&r2=7908
==============================================================================
--- tools/trunk/xpp/pic_loader.c (original)
+++ tools/trunk/xpp/pic_loader.c Wed Jan 13 10:26:15 2010
@@ -22,6 +22,7 @@
#include <assert.h>
#include <string.h>
+#include <stdlib.h>
#include <errno.h>
#include <regex.h>
#include "hexfile.h"
More information about the dahdi-commits
mailing list