Re: RealDeal patch to Matchbox 0.50
Philip Blundell <[email protected]>
| Newsgroups | gmane.comp.handhelds.matchbox |
|---|---|
| Message-ID | <[email protected]> |
>+/* These are needed to get rid of some two >+ * wierd compiler warnings. Don't ask me why >+ * it doesn't work. I was told userspace should >+ * not include kernel space headers anyway. >+ * (Which is done above with linux/fcntl.h). >+ * -RJS */ >+int fcntl(int fd, int cmd, long arg); >+int open(const char *pathname, int flags); Like you say, including <linux/*> headers is bad form. It would probably be better just to use glibc's <fcntl.h>, which will prototype those functions as well as declaring the dnotify constants (under -D_GNU_SOURCE). p.