$OpenBSD: patch-glom_libglom_connectionpool_backends_postgres_self_cc,v 1.3 2011/11/21 14:13:03 jasper Exp $
--- glom/libglom/connectionpool_backends/postgres_self.cc.orig	Mon Nov 21 14:36:00 2011
+++ glom/libglom/connectionpool_backends/postgres_self.cc	Mon Nov 21 14:36:49 2011
@@ -434,7 +434,11 @@ Backend::StartupErrors PostgresSelfHosted::startup(con
                                   + " -c hba_file=" + Glib::shell_quote(dbdir_hba)
                                   + " -c ident_file=" + Glib::shell_quote(dbdir_ident)
                                   + " -k " + Glib::shell_quote(dbdir)
+#ifdef __OpenBSD__
+; /* The --external_pid_file option is a no-op and pidfile is fixed to dbdir_data/postmaster.pid */
+#else
                                   + " --external_pid_file=" + Glib::shell_quote(dbdir_pid);
+#endif
   //std::cout << G_STRFUNC << ": debug: " << command_postgres_start << std::endl;
 
   // Make sure to use double quotes for the executable path, because the
