dtksh: HACKY fix for compilation on later linux C library where FILE definition has moved

This commit is contained in:
Peter Howkins
2018-03-23 01:51:39 +00:00
parent b1c3729e88
commit 9d69ea3d97
12 changed files with 61 additions and 8 deletions

View File

@@ -96,6 +96,12 @@ static const char id[] = "\n@(#)id (AT&T Bell Laboratories) 07/17/94\0\n";
#include "FEATURE/ids"
/* on linux grp.h pwd.h can include FILE without stdio.h which clashes with sfio_t */
#if defined(linux)
#ifndef __FILE_defined
#define __FILE_defined 1
#endif
#endif
#include <grp.h>
#include <pwd.h>