Remove unnecessary #ifdef guard around the function prototypes; they
are already inside a larger #ifdef block. Move #include "subsystems.h"
inside the USE_INJECTION_POINTS guard; it's needed for
InjectionPointShmemCallbacks, which is a also inside the guard.
Reported-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/87y0iz2c1v.fsf@wibble.ilmari.org
*/
#include "postgres.h"
-#include "storage/subsystems.h"
#include "utils/injection_point.h"
#ifdef USE_INJECTION_POINTS
#include "storage/fd.h"
#include "storage/lwlock.h"
#include "storage/shmem.h"
+#include "storage/subsystems.h"
#include "utils/hsearch.h"
#include "utils/memutils.h"
static HTAB *InjectionPointCache = NULL;
-#ifdef USE_INJECTION_POINTS
static void InjectionPointShmemRequest(void *arg);
static void InjectionPointShmemInit(void *arg);
-#endif
/*
* injection_point_cache_add