Solaris fixes
This commit is contained in:
parent
8b05add577
commit
e60ed679b4
|
@ -1,3 +1,5 @@
|
|||
2008-12-04 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
* Minor patches for better Solaris compatibility (Thanks to Benno Rice <benno@ekit-inc.com>)
|
||||
2008-12-01 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
* Misc. fixes to number normalisation in mmsbox
|
||||
2008-11-26 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
|
|
|
@ -203,7 +203,7 @@ static MmsEnvelope *mms_queue_readenvelope(char *qf, char *mms_queuedir, int sho
|
|||
|
||||
strncpy(xqf, octstr_get_cstr(fname), sizeof xqf);
|
||||
|
||||
if ((fd = open(octstr_get_cstr(fname), O_RDONLY)) < 0) {
|
||||
if ((fd = open(octstr_get_cstr(fname), O_RDWR)) < 0) {
|
||||
octstr_destroy(fname);
|
||||
return NULL;
|
||||
} else if (mm_lockfile(fd, octstr_get_cstr(fname), shouldblock) != 0) {
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef SunOS
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include "mms_billing.h"
|
||||
|
||||
static Octstr *script = NULL;
|
||||
|
|
Loading…
Reference in New Issue