summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild_tools/make_version_h3
-rw-r--r--dahdi_cfg.c1
-rw-r--r--dahdi_diag.c1
-rw-r--r--dahdi_monitor.c1
-rw-r--r--dahdi_scan.c2
-rw-r--r--dahdi_speed.c2
-rw-r--r--dahdi_test.c2
-rw-r--r--dahdi_tool.c1
-rw-r--r--fxotune.c1
-rw-r--r--fxstest.c1
-rw-r--r--hdlcgen.c2
-rw-r--r--hdlcstress.c2
-rw-r--r--hdlctest.c2
-rw-r--r--hdlcverify.c2
-rw-r--r--patgen.c1
-rw-r--r--patlooptest.c1
-rw-r--r--pattest.c1
-rw-r--r--sethdlc.c1
-rw-r--r--timertest.c1
-rw-r--r--tonezone.c1
20 files changed, 28 insertions, 1 deletions
diff --git a/build_tools/make_version_h b/build_tools/make_version_h
index 772c8cf..f65fdd0 100755
--- a/build_tools/make_version_h
+++ b/build_tools/make_version_h
@@ -4,6 +4,7 @@ cat << END
* version.h
* Automatically generated
*/
-#define TOOLS_VERSION "${TOOLSVERSION}"
+
+static const char tools_version[] = "DAHDI Tools Version - ${TOOLSVERSION}";
END
diff --git a/dahdi_cfg.c b/dahdi_cfg.c
index ec7299d..04e4de5 100644
--- a/dahdi_cfg.c
+++ b/dahdi_cfg.c
@@ -40,6 +40,7 @@
#include <dahdi/user.h>
#include "tonezone.h"
+#include "version.h"
#define CONFIG_FILENAME DAHDI_CONFIG
#define MASTER_DEVICE "/dev/dahdi/ctl"
diff --git a/dahdi_diag.c b/dahdi_diag.c
index 2fd56d7..a47e107 100644
--- a/dahdi_diag.c
+++ b/dahdi_diag.c
@@ -5,6 +5,7 @@
#include <unistd.h>
#include <dahdi/user.h>
+#include "version.h"
int main(int argc, char *argv[])
{
diff --git a/dahdi_monitor.c b/dahdi_monitor.c
index 77cd1e6..43795ef 100644
--- a/dahdi_monitor.c
+++ b/dahdi_monitor.c
@@ -42,6 +42,7 @@
#include <dahdi/user.h>
#include "tonezone.h"
+#include "version.h"
#include <linux/soundcard.h>
diff --git a/dahdi_scan.c b/dahdi_scan.c
index 5f7fe48..ee7d5c9 100644
--- a/dahdi_scan.c
+++ b/dahdi_scan.c
@@ -36,6 +36,8 @@
#include <dahdi/user.h>
+#include "version.h"
+
int main(int argc, char *argv[])
{
int ctl;
diff --git a/dahdi_speed.c b/dahdi_speed.c
index 7b41d78..5959258 100644
--- a/dahdi_speed.c
+++ b/dahdi_speed.c
@@ -14,6 +14,8 @@
#include <unistd.h>
#include <stdlib.h>
+#include "version.h"
+
static long count=0;
static void alm(int sig)
diff --git a/dahdi_test.c b/dahdi_test.c
index 1ee1a2c..d3695f8 100644
--- a/dahdi_test.c
+++ b/dahdi_test.c
@@ -9,6 +9,8 @@
#include <math.h>
#include <getopt.h>
+#include "version.h"
+
#define SIZE 8000
static int pass = 0;
diff --git a/dahdi_tool.c b/dahdi_tool.c
index fe49a54..be6aebe 100644
--- a/dahdi_tool.c
+++ b/dahdi_tool.c
@@ -45,6 +45,7 @@
#include <dahdi/user.h>
#include "tonezone.h"
+#include "version.h"
static int ctl = -1;
static int span_max_chan_pos;
diff --git a/fxotune.c b/fxotune.c
index 1118453..b152487 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -26,6 +26,7 @@
#include <dahdi/user.h>
#include <dahdi/wctdm_user.h>
+#include "version.h"
#include "fxotune.h"
#define TEST_DURATION 2000
diff --git a/fxstest.c b/fxstest.c
index 1c31d67..4b0057d 100644
--- a/fxstest.c
+++ b/fxstest.c
@@ -9,6 +9,7 @@
#include <dahdi/wctdm_user.h>
#include "tonezone.h"
+#include "version.h"
static int tones[] = {
DAHDI_TONE_DIALTONE,
diff --git a/hdlcgen.c b/hdlcgen.c
index 417004b..6e61941 100644
--- a/hdlcgen.c
+++ b/hdlcgen.c
@@ -7,6 +7,8 @@
#include <unistd.h>
#include <stdlib.h>
+#include "version.h"
+
#define RANDOM "/dev/urandom" /* Not genuinely random */
/* #define RANDOM "/dev/random" */ /* Quite genuinely random */
diff --git a/hdlcstress.c b/hdlcstress.c
index 694dea0..d32dc90 100644
--- a/hdlcstress.c
+++ b/hdlcstress.c
@@ -13,6 +13,8 @@
#define FAST_HDLC_NEED_TABLES
#include "kernel/fasthdlc.h"
+#include "version.h"
+
/* #define BLOCK_SIZE 2048 */
#define BLOCK_SIZE 2041
diff --git a/hdlctest.c b/hdlctest.c
index 680b33a..ec155a5 100644
--- a/hdlctest.c
+++ b/hdlctest.c
@@ -13,6 +13,8 @@
#define FAST_HDLC_NEED_TABLES
#include "kernel/fasthdlc.h"
+#include "version.h"
+
#define BLOCK_SIZE 2039
static unsigned short fcstab[256] =
diff --git a/hdlcverify.c b/hdlcverify.c
index 8212b2a..eeffadb 100644
--- a/hdlcverify.c
+++ b/hdlcverify.c
@@ -7,6 +7,8 @@
#include <unistd.h>
#include <stdlib.h>
+#include "version.h"
+
int myread(int fd, char *buf, int len)
{
int sofar;
diff --git a/patgen.c b/patgen.c
index e8e1d41..d0ab61c 100644
--- a/patgen.c
+++ b/patgen.c
@@ -11,6 +11,7 @@
#include "bittest.h"
#include <dahdi/user.h>
+#include "version.h"
/* #define BLOCK_SIZE 2048 */
#define BLOCK_SIZE 2041
diff --git a/patlooptest.c b/patlooptest.c
index c53cf96..e844eaf 100644
--- a/patlooptest.c
+++ b/patlooptest.c
@@ -9,6 +9,7 @@
#include <time.h>
#include <dahdi/user.h>
+#include "version.h"
#define BLOCK_SIZE 2039
diff --git a/pattest.c b/pattest.c
index 4e26ea0..f41f75f 100644
--- a/pattest.c
+++ b/pattest.c
@@ -11,6 +11,7 @@
#include "bittest.h"
#include <dahdi/user.h>
+#include "version.h"
#define BLOCK_SIZE 2039
diff --git a/sethdlc.c b/sethdlc.c
index 26f9dcb..f759498 100644
--- a/sethdlc.c
+++ b/sethdlc.c
@@ -24,6 +24,7 @@
#include <linux/sockios.h>
#include <dahdi/user.h>
+#include "version.h"
#if GENERIC_HDLC_VERSION != 4
#error Generic HDLC layer version mismatch, please get correct sethdlc.c
diff --git a/timertest.c b/timertest.c
index 28e76ed..480a822 100644
--- a/timertest.c
+++ b/timertest.c
@@ -9,6 +9,7 @@
#include <errno.h>
#include <dahdi/user.h>
+#include "version.h"
int main(int argc, char *argv[])
{
diff --git a/tonezone.c b/tonezone.c
index 588bf52..6f2d6cc 100644
--- a/tonezone.c
+++ b/tonezone.c
@@ -32,6 +32,7 @@
#include "dahdi/user.h"
#include "tonezone.h"
+#include "version.h"
#define DEFAULT_DAHDI_DEV "/dev/dahdi/ctl"