The availability of socketbits.h?

Giorgos Keramidas keramida at ceid.upatras.gr
Wed May 18 02:32:29 PDT 2005


On 2005-05-18 13:54, Xu Qiang <Qiang.Xu at fujixerox.com> wrote:
>Ted Mittelstaedt wrote:
>> Would you post a diff of the files you had to change to the list once
>> you get it running?
>
> If you follow this thread, it would be quite easy. Anyway, it is my
> pleasure to do a summary here. But I don't know how to put the diff
> result into a more readable format (like the old line is prefixed with
> a "-", and the newline is prefixed with a "+") than this:

That should be easy.  You'll need two directory hierarchies:

  * One with the unchanged, "vendor" version of the code, i.e. an
    extracted copy of the tarballs you got from sourceforge.

  * One with the fixed version that builds and runs fine on your system.

Assuming that you have the tarballs of mlrate-1.1.0 and nngs-1.1.14 that
you got from sourceforge under /tmp/nngs/vendor/mlrate-1.1.0 and
/tmp/nngs/vendor/nngs-1.1.14 respectively, you can copy these
directories recursively to /tmp/nngs/local:

	# mkdir -p /tmp/nngs/local
	# cd /tmp/nngs/vendor
	# cp -Rp mlrate-1.10 nngs-1.1.14 /tmp/nngs/local

Then you can make all the changes you need to /tmp/nngs/local and see
all the changes of mlrate or nngs in one patchfile with:

	# cd /tmp/nngs
	# diff -ruN vendor/mlrate* local/mlrate* > /tmp/nngs/mlrate.patch
	# less /tmp/nngs/mlrate.patch

	# cd /tmp/nngs
	# diff -ruN vendor/nngs* local/nngs* > /tmp/nngs/nngs.patch
	# less /tmp/nngs/nngs.patch

> If you can tell me how to do it in a "-", "+" format, I will post a
> complete revision to the list.

See above :-)



More information about the freebsd-questions mailing list