diff options
author | Jim Meyering <jim@meyering.net> | 2002-01-16 23:02:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-01-16 23:02:28 +0000 |
commit | 2302cc643bf0b0a4738f2712d607b09cd06efaca (patch) | |
tree | 3dc2eea9a6c412daa2968637dc5f1a3c1e4a4645 /src | |
parent | f29617e3fe93740a859a79d6304d8b457c8d9d47 (diff) | |
download | coreutils-2302cc643bf0b0a4738f2712d607b09cd06efaca.tar.xz |
(_POSIX2_VERSION, POSIX2_VERSION): New macros.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index 6e11e44bd..caf50aec7 100644 --- a/src/system.h +++ b/src/system.h @@ -1,5 +1,5 @@ /* system-dependent definitions for fileutils, textutils, and sh-utils packages. - Copyright (C) 1989, 1991-2001 Free Software Foundation, Inc. + Copyright (C) 1989, 1991-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,6 +33,17 @@ # include <unistd.h> #endif +#ifndef _POSIX2_VERSION +# define _POSIX2_VERSION 0 +#endif + +/* The POSIX version that our programs should conform to. The default + is the same as for system programs. If the system does not specify + a version, assume the latest version, whatever it is. */ +#ifndef POSIX2_VERSION +# define POSIX2_VERSION (_POSIX2_VERSION ? _POSIX2_VERSION : 2147483647) +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif |