ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If it is supposed to be a kernel space module, then you need to include additional terms within the source and build it differently.
If you need a system time stamp, there are other ways to get one. Some give you seconds and nanoseconds since the epoch, some give you local time, some give you seconds and nanoseconds since the start of the system. It will be helpful for you to explain your needs for the time stamp you wish.
Further, in any future case when you experience a compile problem, it will be helpful to use the -v flag to increase the output for the gcc call, and also show the gcc call as well as the output to the terminal for your compilation attempt. This will give all the flags to readers for their benefit as they evaluate the errors, and also it will show the specific errors for people to review and offer comments about.
Also, not sure but I think you should not have anything except a comment after the #endif term, you can have a comment, but you should not have the CONFIG_NTP_PPS there. That may have changed with C99, I don't know in the past that would've been an error and my practice is to always have nothing, or a comment to link it back to the start of the #if or #ifdef term for my code notes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.