Last active
December 15, 2015 17:38
-
-
Save naaman/5297494 to your computer and use it in GitHub Desktop.
Notes on patching NetworkInterface.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd $ICEDTEA_PATH | |
$ find . -name NetworkInterface.c | |
./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c | |
... | |
$ cp ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c ./NetworkInterface.c | |
$ vi NetworkInterface.c | |
/fscanf | |
note: fscanf should only match one line | |
replace first 02x with 08x | |
:wq | |
$ diff -u ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c ./NetworkInterface.c > patches/8009591-network_interface.patch | |
$ rm NetworkInterface.c | |
$ vi Makefile | |
/ICEDTEA_PATCHES | |
append patches/8009591-network_interface.patch | |
:wq | |
$ make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment