Fix missing prototype for _strdup
_strdup is not part of any include file i could find on Solaris 10. manually add the _strdup prototype if needed. cmr=v1.8.2:reviewer=jsquyres This commit was SVN r32449.
Этот коммит содержится в:
родитель
7a39509589
Коммит
d5a3448b8b
@ -10,6 +10,8 @@
|
|||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved
|
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved
|
||||||
|
* Copyright (c) 2014 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -23,6 +25,9 @@
|
|||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif /* HAVE_STRING_H */
|
#endif /* HAVE_STRING_H */
|
||||||
|
#ifdef HAVE__STRDUP
|
||||||
|
char * _strdup (const char *);
|
||||||
|
#endif /* HAVE__STRDUP */
|
||||||
#ifdef HAVE_LIBGEN_H
|
#ifdef HAVE_LIBGEN_H
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#endif /* HAVE_LIBGEN_H */
|
#endif /* HAVE_LIBGEN_H */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user