Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits.
This commit is contained in:
committed by
Jon Trulson
parent
3d5a492038
commit
3b77d7c065
@@ -35,7 +35,7 @@
|
||||
#include "tt_options.h"
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#if !defined(USL) && !defined(__uxp__)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "tt_options.h"
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#if !defined(USL) && !defined(__uxp__)
|
||||
|
||||
@@ -91,7 +91,11 @@ typedef union
|
||||
*/
|
||||
#undef MAXINT
|
||||
#endif
|
||||
#if defined(CSRG_BASED)
|
||||
#define MAXINT INT_MAX
|
||||
#else
|
||||
#include <values.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <errno.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <nl_types.h>
|
||||
|
||||
@@ -2773,7 +2774,7 @@ _tt_run_garbage_collect(int in_parallel)
|
||||
}
|
||||
} else {
|
||||
#endif /* OPT_AUTO_GARBAGE_COLLECT*/
|
||||
exit((int)_tt_garbage_collect(NULL));
|
||||
exit((intptr_t)_tt_garbage_collect(NULL));
|
||||
#if defined(OPT_AUTO_GARBAG_COLLECT)
|
||||
}
|
||||
#endif /* OPT_AUTO_GARBAGE_COLLECT*/
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#if !defined(USL) && !defined(__uxp__)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#ifndef USL
|
||||
@@ -230,7 +230,7 @@ pathlist_lstt_dearchive(
|
||||
(char *)our_process_name, (int)obj_kind );
|
||||
return FALSE;
|
||||
}
|
||||
if (verbosity && ( (last_path != this_path)
|
||||
if (verbosity && ( (last_path != (const char *)this_path)
|
||||
|| (obj_kind == ARCHIVE_END)))
|
||||
{
|
||||
if (last_path_valid) {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#if defined (USL) || defined(__uxp__)
|
||||
|
||||
Reference in New Issue
Block a user