Users of spinlocks should use spin.h, not s_lock.h. And lwlock.h
hasn't utilized spinlocks for quite a while.
Discussion: https://postgr.es/m/
20200618183041.upyrd25eosecyf3x@alap3.anarazel.de
#include "common/username.h"
#include "port/atomics.h"
#include "postmaster/postmaster.h"
-#include "storage/s_lock.h"
#include "storage/spin.h"
#include "tcop/tcopprot.h"
#include "utils/help_config.h"
#define CONDITION_VARIABLE_H
#include "storage/proclist_types.h"
-#include "storage/s_lock.h"
+#include "storage/spin.h"
typedef struct
{
#include "port/atomics.h"
#include "storage/proclist_types.h"
-#include "storage/s_lock.h"
struct PGPROC;