1
0
Fork 0

Solaris fixes

This commit is contained in:
bagyenda 2008-12-04 09:06:26 +00:00
parent 8b05add577
commit e60ed679b4
3 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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) {

View File

@ -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;