Compile ToolTalk on FreeBSD

Fix const correctness problems with OPT_CONST_CORRECT:

tt_xdr_utils.C: In constructor '_Tt_xdr_size_stream::_Tt_xdr_size_stream()':
tt_xdr_utils.C:150: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, long int*)' to 'bool_t (*)(__rpc_xdr*, const long int*)'
tt_xdr_utils.C:151: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, char*, unsigned int)' to 'bool_t (*)(__rpc_xdr*, const char*, u_int)'
tt_xdr_utils.C:159: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, char*, unsigned int)' to 'bool_t (*)(__rpc_xdr*, const char*, u_int)'

tt_entry_pt.C: In function '_Tt_string _tt_entrypt_to_string(_Tt_entry_pt)':
tt_entry_pt.C:455: error: conversion from 'long int' to '_Tt_string' is ambiguous
../../lib/util/tt_string.h:104: note: candidates are: _Tt_string::_Tt_string(int)
../../lib/util/tt_string.h:102: note:                 _Tt_string::_Tt_string(const char*)
This commit is contained in:
Marcin Cieslak
2012-08-13 04:01:47 +02:00
committed by Jon Trulson
parent 8e80886661
commit bf8c5e674f
9 changed files with 51 additions and 6 deletions

View File

@@ -37,7 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "util/copyright.h"
#if defined(linux) || defined(sgi)
#if defined(linux) || defined(sgi) || defined(__FreeBSD__)
#include <getopt.h>
#endif
#include "dbck.h"

View File

@@ -42,7 +42,7 @@
#if defined(linux)
#include <unistd.h>
#endif
#if defined(sgi)
#if defined(sgi) || defined(__FreeBSD__)
#include <getopt.h>
#endif
#if defined(USL) || defined(__uxp__)

View File

@@ -46,6 +46,7 @@ in this Software without prior written authorization from The Open Group.
*/
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xos.h>
#include <X11/Xfuncs.h>
@@ -57,7 +58,7 @@ typedef int Bool;
extern char *ProgramName;
#if !defined(linux)
#if !defined(linux) && !defined(CSRG_BASED)
extern char *malloc(), *realloc();
#endif
int process_command(), auth_initialize(), auth_finalize();

View File

@@ -45,7 +45,7 @@
extern uid_t _tt_uid;
extern gid_t _tt_gid;
extern gid_t _tt_gidlist [NGROUPS_MAX];
extern gid_t _tt_gidlist [NGROUPS];
extern int _tt_gidlen;
extern int _tt_auth_level;

View File

@@ -63,7 +63,7 @@
#include <termios.h>
#include <time.h>
#if defined(sgi)
#if defined(sgi) || defined(__FreeBSD__)
#include <getopt.h>
#endif

View File

@@ -53,7 +53,7 @@
#include <sys/resource.h>
#include <unistd.h>
#if defined(sgi)
#if defined(sgi) || defined(__FreeBSD__)
#include <getopt.h>
#endif