Commit 3d9597c11a827a2ac2c210aa0549694c5b4b006c

Jim Meyering 2002-06-19T11:12:59

Report an error if neither S_ISREG nor S_IFREG is defined, instead of using a test specific to glibc 2.2. This should be safe, since POSIX requires S_ISREG and Unix Version 7 had S_IFREG. We don't need to check for <sys/types.h> since we don't use any symbols that it defines.