|Documents Home :: 4.2.0 :: porting.html
Porting Dorothy in Oz
NOTE: The following procedures have been replaced by GNU automake and autoconfigure. This page is to be updated in the next release.
Porting to a new machine or operating system ordinarily requires updating the ./machines directory and the ./compilers directories in order to define the build environment and autoconfigure means. You will probably have to modify the ntp_machines.h file and "l_stdlib.h" files as well. The two most famous trouble spots are the I/O code in ./ntpd/ntp_io.c and the clock adjustment code in ./ntpd/ntp_unixclock.c.
These are the rules so that older bsd systems and the POSIX standard system can coexist together.
"l_stdlib.h" can contain any extra definitions that are needed so that gcc will shut up. They should be controlled by a system identifier and there should be a separate section for each system. Really this will make it easier to maintain.
See include/ntp_machines.h for the various compile time options.
When you are satisfied the port works and that other ports are not adversely affected, please send patches for the system files you have changed, as well as any documentation that should be updated, including the advice herein.