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:
Marcin Cieslak
2012-08-13 17:57:16 +02:00
committed by Jon Trulson
parent ee03634a10
commit 31aaa48344
19 changed files with 43 additions and 27 deletions

View File

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

View File

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

View File

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