Export a few more symbols required for test_shm_mq module.
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 18 Jan 2014 20:29:45 +0000 (15:29 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 18 Jan 2014 20:29:45 +0000 (15:29 -0500)
Patch from Amit Kapila.

src/include/miscadmin.h
src/include/postmaster/bgworker.h
src/include/storage/shm_mq.h

index b145a19408215624f90c0f7d26cba88fa2c8c938..f133e5ff2d78fc932d2731889991cf8cfc98c83c 100644 (file)
@@ -80,7 +80,7 @@ extern volatile bool ProcDiePending;
 extern volatile bool ClientConnectionLost;
 
 /* these are marked volatile because they are examined by signal handlers: */
-extern volatile bool ImmediateInterruptOK;
+extern PGDLLIMPORT volatile bool ImmediateInterruptOK;
 extern PGDLLIMPORT volatile uint32 InterruptHoldoffCount;
 extern PGDLLIMPORT volatile uint32 CritSectionCount;
 
index 05269f34660fba27515198d59c841dd1897ba090..78d6c0e09dd815b680a2d2963465663d71fdfda4 100644 (file)
@@ -116,7 +116,7 @@ extern BgwHandleStatus WaitForBackgroundWorkerStartup(BackgroundWorkerHandle *
 extern void TerminateBackgroundWorker(BackgroundWorkerHandle *handle);
 
 /* This is valid in a running worker */
-extern BackgroundWorker *MyBgworkerEntry;
+extern PGDLLIMPORT BackgroundWorker *MyBgworkerEntry;
 
 /*
  * Connect to the specified database, as the specified user.  Only a worker
index 1ce88a1c4b22054c70b83a69bfe05df87f5698ea..1bc1f5611e71ea1ceb6d271b6b8a876b3b59e041 100644 (file)
@@ -65,6 +65,6 @@ extern shm_mq_result shm_mq_receive(shm_mq_handle *mqh,
 extern shm_mq_result shm_mq_wait_for_attach(shm_mq_handle *mqh);
 
 /* Smallest possible queue. */
-extern const Size shm_mq_minimum_size;
+extern PGDLLIMPORT const Size shm_mq_minimum_size;
 
 #endif   /* SHM_MQ_H */