mercurial/cext/osutil.c
changeset 42963 460f8bf58020
parent 42069 668eff08387f
child 42964 d6227c6c0814
--- a/mercurial/cext/osutil.c	Sun Sep 22 14:33:56 2019 +0700
+++ b/mercurial/cext/osutil.c	Tue Sep 17 14:57:42 2019 -0700
@@ -765,6 +765,8 @@
 
 #endif /* CMSG_LEN */
 
+/* allow disabling setprocname via compiler flags */
+#ifndef SETPROCNAME_USE_NONE
 #if defined(HAVE_SETPROCTITLE)
 /* setproctitle is the first choice - available in FreeBSD */
 #define SETPROCNAME_USE_SETPROCTITLE
@@ -775,6 +777,7 @@
 #else
 #define SETPROCNAME_USE_NONE
 #endif
+#endif /* ndef SETPROCNAME_USE_NONE */
 
 #ifndef SETPROCNAME_USE_NONE
 static PyObject *setprocname(PyObject *self, PyObject *args)