Files
src/base/patches/tcsh-gethost-native.patch
T
2026-08-04 17:59:44 +01:00

27 lines
508 B
Diff

--- a/gethost.c
+++ b/gethost.c
@@ -29,7 +29,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#include "sh.h"
+#include <assert.h>
+#include <ctype.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#ifdef SCO
# define perror __perror
@@ -45,8 +50,7 @@
# undef system
#endif
-#include <ctype.h>
-#include <assert.h>
+#define INBUFSIZE 8192
#define ISSPACE(p) (isspace((unsigned char) (p)) && (p) != '\n')