Skip to content

Instantly share code, notes, and snippets.

@wtnb75
Created May 26, 2020 00:35
Show Gist options
  • Save wtnb75/ba38dc724b836b189f0f7493ffeb88d7 to your computer and use it in GitHub Desktop.
Save wtnb75/ba38dc724b836b189f0f7493ffeb88d7 to your computer and use it in GitHub Desktop.
--- Makefile.orig 2015-10-03 00:58:40.000000000 +0900
+++ Makefile 2015-10-03 00:59:13.000000000 +0900
@@ -1,4 +1,4 @@
-CFLAGS = -O
+CFLAGS = -O -Wno-implicit-function-declaration -Wno-return-type -Wno-implicit-int
DEST = ${HOME}/bin
@@ -47,5 +47,3 @@
$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
@make -f $(MAKEFILE) DEST=$(DEST) install
-###
-jhd.o: /usr/include/stdio.h /usr/include/ctype.h
--- jhd.c.orig 2015-10-03 00:58:45.000000000 +0900
+++ jhd.c 2015-10-03 00:59:28.000000000 +0900
@@ -24,6 +24,8 @@
#define EUC 1 /* if set, kanji code is EUC (Shift-JIS default) */
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#define BSIZE 16384 /* input buffer size */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment