openbsd-ports/x11/tilda/patches/patch-src-tilda_c
jca 7038aa3ffd Update to tilda-1.3.3
Tweaked diff from Davide Gerhard.
2016-11-06 06:54:54 +00:00

22 lines
911 B
Plaintext

$OpenBSD: patch-src-tilda_c,v 1.3 2016/11/06 06:54:54 jca Exp $
--- src/tilda.c.orig Mon Apr 18 14:09:55 2016
+++ src/tilda.c Sun Nov 6 07:43:00 2016
@@ -12,8 +12,6 @@
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _POSIX_SOURCE /* feature test macro for signal functions */
-#define _XOPEN_SOURCE /* feature test macro for popen */
/*
* This message is shown in a modal dialog when tilda starts and there is a problem parsing the configuration file.
@@ -230,7 +228,7 @@ nomatch:
static GSList *getPids() {
GSList *pids = NULL;
FILE *ps_output;
- const gchar ps_command[] = "ps -C tilda -o pid=";
+ const gchar ps_command[] = "/usr/bin/pgrep tilda";
gchar buf[16]; /* Really shouldn't need more than 6 */
if ((ps_output = popen (ps_command, "r")) == NULL) {