DARWIN: replace macro exported by automake 54/13354/2
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Fri, 5 Oct 2018 15:26:34 +0000 (11:26 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 5 Oct 2018 18:17:31 +0000 (14:17 -0400)
commit07ed94cfd817dc5a4e2d2712570087388fe7828f
tree29dab81aae51e1d41b7dc41c09f78be1a6d9834f
parentf0bab78cbe4f59609fa18647a480cc6989948786
DARWIN: replace macro exported by automake

Commit 4706854f57043c8393baa922dd1974176e110a19 removed automake
references from the source tree. As a result, VERSION (exported by
AM_INIT_AUTOMAKE and obtained from Autoconf's AC_INIT macro) is not
available anymore. Unfortunately, a reference to this macro can be found
in src/afs/DARWIN/osi_module.c. Consequently, builds on OS X fail with
the following message:

    osi_module.c:144:32: error: use of undeclared identifier 'VERSION'

To fix this problem, replace VERSION by PACKAGE_VERSION (defined by
AC_INIT).

Change-Id: Ib3821d79c4cddd59c399985762e13dec755d8642
Reviewed-on: https://gerrit.openafs.org/13354
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/DARWIN/osi_module.c