aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_qcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_qcall.c')
-rwxr-xr-xapps/app_qcall.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/app_qcall.c b/apps/app_qcall.c
index f5721e167..204e491a0 100755
--- a/apps/app_qcall.c
+++ b/apps/app_qcall.c
@@ -95,6 +95,23 @@ LOCAL_USER_DECL;
#define OURCLID "2564286275" /* The callerid to be displayed when calling */
#endif
+#ifdef SOLARIS
+int flock(int fd, int type)
+{
+ struct flock lock;
+
+ lock.l_type = type;
+ lock.l_whence = SEEK_SET;
+ lock.l_start = 0;
+ lock.l_len = 0;
+
+ return fcntl(f, F_SETLK, &lock);
+}
+
+#define LOCK_EX F_WRLCK
+#define LOCK_UN F_UNLCK
+#endif
+
static void *qcall_do(void *arg);
static void *qcall(void *ignore)