Don't see anything obvious that needs cdefs.h in there, so I replaced it
with types.h


On Mon, Sep 22, 2014 at 05:02:29PM +0200, Dagobert Michelsen wrote:
> Hi Nicholas,
> 
> Am 22.09.2014 um 16:53 schrieb Dagobert Michelsen <d...@opencsw.org>:
> > Am 22.09.2014 um 16:31 schrieb Nicholas Marriott 
> > <nicholas.marri...@gmail.com>:
> >> Well, I don't have any Solaris boxes but it probably isn't too big a
> >> change - try this:
> >> 
> >> diff --git a/compat.h b/compat.h
> >> index bf6e536..2e433a0 100644
> >> --- a/compat.h
> >> +++ b/compat.h
> >> @@ -176,6 +176,13 @@ typedef uint64_t u_int64_t;
> >> #define TTY_NAME_MAX 32
> >> #endif
> >> 
> >> +#ifndef HAVE_FLOCK
> >> +#define LOCK_SH 0
> >> +#define LOCK_EX 0
> >> +#define LOCK_NB 0
> >> +#define flock(fd, op) (0)
> >> +#endif
> >> +
> >> #ifndef HAVE_BZERO
> >> #undef bzero
> >> #define bzero(buf, len) memset(buf, 0, len);
> >> diff --git a/configure.ac b/configure.ac
> >> index b524ff8..fc71f02 100644
> >> --- a/configure.ac
> >> +++ b/configure.ac
> >> @@ -386,6 +386,7 @@ AC_CHECK_FUNCS(
> >>    [ \
> >>            bzero \
> >>            dirfd \
> >> +          flock \
> >>            setproctitle \
> >>            sysconf \
> >>            cfmakeraw \
> > 
> > The compile seems to proceed over the critical point, however now it stops 
> > at
> > 
> > /opt/SUNWspro/bin/cc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" 
> > -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"tmux\ 2.0\" 
> > -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" 
> > -DVERSION=\"2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
> > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CURSES_H=1 
> > -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> > -DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=1 
> > -DHAVE_SETENV=1 -DHAVE_STRLCPY=1 -DHAVE_STRLCAT=1 -DHAVE_ASPRINTF=1 
> > -DHAVE_OPENAT=1 -DHAVE_DECL_OPTARG=0 -DHAVE_DECL_OPTIND=0 
> > -DHAVE_DECL_OPTRESET=0 -DHAVE_BZERO=1 -DHAVE_SYSCONF=1 -DHAVE_PROC_PID=1 
> > -I.   -I/opt/csw/include    -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED 
> > -DTMUX_CONF="\"/etc/tmux.conf\""     -D_XPG4_2 -D__EXTENSIONS__ 
> > -D_POSIX_PTHREAD_SEMANTICS      -erroff=E_EMPTY_DECLARATION -c -o 
> > compat/fparseln.o compat/fparseln.c
> > "compat/fparseln.c", line 35: cannot find include file: <sys/cdefs.h>
> > 
> > as Solaris does not have cdefs.h, so this needs to be checked also.
> 
> The cdefs.h does not seem to be necessary. If I just take out the include the 
> compile
> proceeds and I can start tmux and it looks good for now. I guess you can 
> commit the
> change. Thanks for the quick response!
> 
> 
> Best regards
> 
>   ? Dago
> 
> -- 
> "You don't become great by trying to be great, you become great by wanting to 
> do something,
> and then doing it so hard that you become great in the process." - xkcd #896
> 



------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to