Blame scsilib/include/getcwd.h

Packit bf707c
/* @(#)getcwd.h	1.3 01/07/15 Copyright 1998 J. Schilling */
Packit bf707c
/*
Packit bf707c
 *	Definitions for getcwd()
Packit bf707c
 *
Packit bf707c
 *	Copyright (c) 1998 J. Schilling
Packit bf707c
 */
Packit bf707c
/*
Packit bf707c
 * This program is free software; you can redistribute it and/or modify
Packit bf707c
 * it under the terms of the GNU General Public License as published by
Packit bf707c
 * the Free Software Foundation; either version 2, or (at your option)
Packit bf707c
 * any later version.
Packit bf707c
 *
Packit bf707c
 * This program is distributed in the hope that it will be useful,
Packit bf707c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit bf707c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit bf707c
 * GNU General Public License for more details.
Packit bf707c
 *
Packit bf707c
 * You should have received a copy of the GNU General Public License
Packit bf707c
 * along with this program; see the file COPYING.  If not, write to
Packit bf707c
 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
Packit bf707c
 */
Packit bf707c
Packit bf707c
#ifndef	_GETCWD_H
Packit bf707c
#define	_GETCWD_H
Packit bf707c
Packit bf707c
#ifndef _MCONFIG_H
Packit bf707c
#include <mconfig.h>
Packit bf707c
#endif
Packit bf707c
Packit bf707c
#ifdef JOS
Packit bf707c
#	ifndef	_INCL_SYS_STYPES_H
Packit bf707c
#	include <sys/stypes.h>
Packit bf707c
#	define	_INCL_SYS_STYPES_H
Packit bf707c
#	endif
Packit bf707c
	extern char	*gwd();
Packit bf707c
#	define		getcwd(b, len)	gwd(b)
Packit bf707c
#else
Packit bf707c
#	ifndef	HAVE_GETCWD
Packit bf707c
#		define	getcwd(b, len)	getwd(b)
Packit bf707c
#	endif
Packit bf707c
#endif
Packit bf707c
Packit bf707c
#endif	/* _GETCWD_H */