summaryrefslogtreecommitdiff
path: root/libvxi11client
diff options
context:
space:
mode:
Diffstat (limited to 'libvxi11client')
-rw-r--r--libvxi11client/Makefile1
-rw-r--r--libvxi11client/libvxi11client.c2
-rw-r--r--libvxi11client/perlbits/Client.xs2
-rw-r--r--libvxi11client/perlbits/Makefile.PL2
4 files changed, 5 insertions, 2 deletions
diff --git a/libvxi11client/Makefile b/libvxi11client/Makefile
index 304e180..ec74afe 100644
--- a/libvxi11client/Makefile
+++ b/libvxi11client/Makefile
@@ -28,6 +28,7 @@ perl:
-rm -rf VXI11-Client
h2xs -A -x -n VXI11::Client
cp vxi11.h libvxi11client.c libvxi11client.h vxi11_clnt.c vxi11_xdr.c VXI11-Client/
+ cp perlbits/README VXI11-Client/
cp perlbits/perlglue.c perlbits/perlglue.h VXI11-Client/
cp perlbits/Client.xs VXI11-Client/
cp perlbits/Makefile.PL VXI11-Client/
diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c
index ff8f86f..4697775 100644
--- a/libvxi11client/libvxi11client.c
+++ b/libvxi11client/libvxi11client.c
@@ -499,7 +499,7 @@ int vxi11_enable_srq(bool enable, char* handle, void (*callback)(void)) {
if (enable) {
if (handle != NULL) {
params.handle.handle_val = handle;
- params.handle.handle_len = strlen(handle);
+ params.handle.handle_len = strlen(handle) + 1;
}
interruptcallback = callback;
}
diff --git a/libvxi11client/perlbits/Client.xs b/libvxi11client/perlbits/Client.xs
index ebfc037..3bd831f 100644
--- a/libvxi11client/perlbits/Client.xs
+++ b/libvxi11client/perlbits/Client.xs
@@ -6,6 +6,8 @@
MODULE = VXI11::Client PACKAGE = VXI11::Client
+PROTOTYPES: ENABLE
+
int
abort()
CODE:
diff --git a/libvxi11client/perlbits/Makefile.PL b/libvxi11client/perlbits/Makefile.PL
index 055880e..43b9d41 100644
--- a/libvxi11client/perlbits/Makefile.PL
+++ b/libvxi11client/perlbits/Makefile.PL
@@ -9,7 +9,7 @@ WriteMakefile(
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/VXI11/Client.pm', # retrieve abstract from module
AUTHOR => 'daniel <daniel@>') : ()),
- LIBS => ['-pthread -lgthread-2.0 -lrt -lglib-2.0'], # e.g., '-lm'
+ LIBS => ['-lpthread -lgthread-2.0 -lrt -lglib-2.0'], # e.g., '-lm'
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include', # e.g., '-I. -I/usr/include/other'
OBJECT => '$(O_FILES)', # link all the C files too