26315: define ZSH_PATCHLEVEL to "unknown" if not found

This commit is contained in:
Peter Stephenson 2009-01-15 19:47:20 +00:00
parent 45bee14fec
commit fe3fb64472
2 changed files with 11 additions and 1 deletions

View File

@ -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 $
*****************************************************

View File

@ -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 */