Browse Source

[core] move version.h logic into server.c

and remove version.h
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
daa94fceee
  1. 6
      src/Makefile.am
  2. 9
      src/server.c
  3. 13
      src/version.h

6
src/Makefile.am

@ -383,10 +383,10 @@ hdr = server.h base64.h buffer.h network.h log.h keyvalue.h \
rand.h \
sys-endian.h sys-mmap.h sys-socket.h mod_cml.h mod_cml_funcs.h \
safe_memclear.h splaytree.h proc_open.h status_counter.h \
mod_magnet_cache.h \
version.h
mod_magnet_cache.h
DEFS= @DEFS@ -DHAVE_VERSION_H -DLIBRARY_DIR="\"$(libdir)\"" -DSBIN_DIR="\"$(sbindir)\""
DEFS= @DEFS@ -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR="\"$(libdir)\"" -DSBIN_DIR="\"$(sbindir)\""
if LIGHTTPD_STATIC

9
src/server.c

@ -18,7 +18,14 @@
#include "plugin.h"
#include "joblist.h"
#include "network_backends.h"
#include "version.h"
#ifdef HAVE_VERSIONSTAMP_H
# include "versionstamp.h"
#else
# define REPO_VERSION ""
#endif
#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION
#include <sys/types.h>
#include <sys/time.h>

13
src/version.h

@ -1,13 +0,0 @@
#ifndef _VERSION_H_
#define _VERSION_H_
#include "first.h"
#ifdef HAVE_VERSION_H
# include "versionstamp.h"
#else
# define REPO_VERSION ""
#endif
#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION
#endif
Loading…
Cancel
Save