Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error src/client.c on hpux #2

Open
kinichiro opened this issue Jul 19, 2015 · 1 comment
Open

compilation error src/client.c on hpux #2

kinichiro opened this issue Jul 19, 2015 · 1 comment

Comments

@kinichiro
Copy link
Owner

try https://github.com/kinichiro/openntpd-portable/tree/build_hpux , and encountered.

  CC       ntpd-client.o
"/usr/include/netinet/ip.h", line 123: error #2020: identifier "n_long" is
          undefined
                n_long  ipt_time[1];
                ^

"/usr/include/netinet/ip.h", line 126: error #2020: identifier "n_long" is
          undefined
                        n_long ipt_time;
                        ^

2 errors detected in the compilation of "client.c".
*** Error exit code 2
@kinichiro
Copy link
Owner Author

adding #include <netinet/in_systm.h> in src/ntpd.h resolve compilation error.

...
    25  #include <netinet/in.h>
    26  #include <netinet/in_systm.h>
    27  #include <netinet/ip.h>
    28  #include <arpa/inet.h>
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant