FreeBSD port: dtsearch, dtterm, dtwidget, dthelp
FreeBSD portability of dtsearch, dtterm, dtwidget, dthelp Work in progress for dtlogin and dtmail
This commit is contained in:
committed by
Jon Trulson
parent
ee03634a10
commit
31aaa48344
@@ -314,10 +314,8 @@ int DtSearchInit (
|
||||
aa_argv0 = argv0;
|
||||
if (err_file)
|
||||
aa_stderr = err_file;
|
||||
#if defined(linux) || defined(CSRG_BASED)
|
||||
else
|
||||
aa_stderr = stderr;
|
||||
#endif
|
||||
|
||||
sprintbuf = austext_malloc (SPRINTBUFSZ, PROGNAME "135", NULL);
|
||||
|
||||
|
||||
@@ -60,11 +60,7 @@
|
||||
#include <stdio.h>
|
||||
#include <nl_types.h>
|
||||
|
||||
#if defined(linux)
|
||||
FILE *aa_stderr = NULL;
|
||||
#else
|
||||
FILE *aa_stderr = stderr;
|
||||
#endif
|
||||
char *aa_argv0 = "<argv0>";
|
||||
nl_catd dtsearch_catd = (nl_catd) -1;
|
||||
nl_catd austools_catd = (nl_catd) -1;
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
# define __SVR4_I386_ABI_L1__
|
||||
#endif
|
||||
#include <limits.h> /* pickup WORD_BIT, LONG_BIT */
|
||||
#if defined(linux)
|
||||
#if defined(linux) || defined(__FreeBSD__)
|
||||
# undef __SVR4_I386_ABI_L1__
|
||||
# ifndef WORD_BIT
|
||||
# define WORD_BIT 32
|
||||
|
||||
Reference in New Issue
Block a user