Solaris has no strcasestr.

This commit is contained in:
Nicholas Marriott
2009-07-02 07:31:02 +00:00
parent 3c0500f282
commit 1f1623e04d
3 changed files with 76 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: compat.h,v 1.5 2009-07-01 22:46:13 nicm Exp $ */
/* $Id: compat.h,v 1.6 2009-07-02 07:30:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -119,6 +119,11 @@
#define TTY_NAME_MAX 32
#endif
#ifndef HAVE_STRCASESTR
/* strcasestr.c */
char *strcasestr(const char *, const char *);
#endif
#ifndef HAVE_STRTONUM
/* strtonum.c */
long long strtonum(const char *, long long, long long, const char **);