Menu

#277 Missing <time.h> include

None
closed
nobody
None
5
2015-08-03
2014-12-29
No

The nanosleep() function prototype is in <time.h>, so this header file
should be included whenever nanosleep() is used. Not including it
causes some issues when building OProfile against a non-thread capable
version of the uClibc C library, probably because in such situation,
<time.h> does not get included by another header.

See http://autobuild.buildroot.org/results/d28/d28447c1241ce3dd237710e388d799139d7d613d/build-end.log.

The attached patch fixes those issues.

1 Attachments

Discussion

  • William Cohen

    William Cohen - 2015-05-26

    This patch looks good and has been added to the git repository.

     
  • William Cohen

    William Cohen - 2015-05-26
    • status: open --> open-fixed
    • Group: -->
     
  • William Cohen

    William Cohen - 2015-08-03
    • status: open-fixed --> closed
     

Log in to post a comment.