*/
-#include <string.h>\r
-#include <ctype.h>\r
-#include <time.h>\r
+#include "config.h"
+
+#include <string.h>
+#include <ctype.h>
+#include <time.h>
#ifndef WIN32
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>
-#endif\r
-\r
-#include "misc.h"\r
-#include "gsm-common.h"\r
+#endif
+
+#include "misc.h"
+#include "gsm-common.h"
#ifndef HAVE_TIMEOPS
} else return -1;
}
+#ifndef UCLINUX
+
/*
* like atoi, but of a non-null-terminated string of a specified portion
*/
return( atoi(aux) );
}
+#endif /* UCLINUX */
+
/*
* make hexdump of Message
*/
#ifndef WIN32
+#ifndef UCLINUX
+
#define max_buf_len 128
#define lock_path "/var/lock/LCK.."
}
/* Removes lock and frees memory */
-bool unlock_device(char *lock_file)
+static bool unlock_device(char *lock_file)
{
int err;
free(lock_file);
return (err + 1);
}
+
+#endif /* UCLINUX */
+
#endif /* WIN32 */