From 028419ff4b01df2a6befa6eec5eab4d2d1703b69 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott <nicholas.marriott@gmail.com> Date: Sat, 7 Feb 2009 19:41:35 +0000 Subject: [PATCH] Comment. Missing OS X headers. +TODO. --- TODO | 2 ++ osdep-darwin.c | 4 +++- osdep-openbsd.c | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 76f69f76..b09be444 100644 --- a/TODO +++ b/TODO @@ -88,3 +88,5 @@ cannot control it per-session - if the child is suspended in window with eg ^Z it should be restarted, or ^Z should be ignored +- look at osdep-openbsd/freebsd code again to try and make it more accurate + and more consistent diff --git a/osdep-darwin.c b/osdep-darwin.c index e8b184f8..9ca0b3dd 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -1,4 +1,4 @@ -/* $Id: osdep-darwin.c,v 1.3 2009-01-30 20:14:35 nicm Exp $ */ +/* $Id: osdep-darwin.c,v 1.4 2009-02-07 19:41:35 nicm Exp $ */ /* * Copyright (c) 2009 Joshua Elsasser <josh@elsasser.org> @@ -22,6 +22,8 @@ #include <sys/sysctl.h> #include <stdlib.h> +#include <string.h> +#include <unistd.h> char *get_argv0(int, char *); diff --git a/osdep-openbsd.c b/osdep-openbsd.c index c4a52d23..0dc3e3e1 100644 --- a/osdep-openbsd.c +++ b/osdep-openbsd.c @@ -1,4 +1,4 @@ -/* $Id: osdep-openbsd.c,v 1.9 2009-02-07 19:24:50 nicm Exp $ */ +/* $Id: osdep-openbsd.c,v 1.10 2009-02-07 19:41:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -92,7 +92,7 @@ retry: if (p->p_flag & P_SINTR && !(bestp->p_flag & P_SINTR)) bestp = p; if (LIST_FIRST(&p->p_children) == NULL && - LIST_FIRST(&bestp->p_children) != NULL) + LIST_FIRST(&bestp->p_children) != NULL) /* XXX ugh */ bestp = p; } if (bestp != NULL) {