diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-01-15 19:47:20 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-01-15 19:47:20 +0000 |
commit | fe3fb644722193c4bb11bb42cef668213910817c (patch) | |
tree | f4fb88d0ccb743b60a241c072433a3b956711419 | |
parent | 45bee14fec248d79a345ef970ad4933540d50dac (diff) | |
download | zsh-fe3fb644722193c4bb11bb42cef668213910817c.tar.gz zsh-fe3fb644722193c4bb11bb42cef668213910817c.tar.xz zsh-fe3fb644722193c4bb11bb42cef668213910817c.zip |
26315: define ZSH_PATCHLEVEL to "unknown" if not found
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Src/params.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index fcc16693c..9b0de8a8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-15 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 26315: Src/params.c: define ZSH_PATCHLEVEL to "unknown" if + revision not found. + 2009-01-15 Peter Stephenson <pws@csr.com> * 26313: INSTALL, configure.ac, Src/params.c: add @@ -10919,5 +10924,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4510 $ +* $Revision: 1.4511 $ ***************************************************** diff --git a/Src/params.c b/Src/params.c index 28dff3684..1e902e871 100644 --- a/Src/params.c +++ b/Src/params.c @@ -35,6 +35,11 @@ #define ZSH_PATCHLEVEL CUSTOM_PATCHLEVEL #else #include "patchlevel.h" + +/* If removed from the ChangeLog for some reason */ +#ifndef ZSH_PATCHLEVEL +#define ZSH_PATCHLEVEL "unknown" +#endif #endif /* what level of localness we are at */ |