[systemd-devel] Old definitions
Dennis Semakin
insane79 at yandex.ru
Wed Oct 17 05:18:19 PDT 2012
Hi,
I'm currently compiling systemd-194.
Very often I get the error about undeclarated definitions MS_REC, MS_PRIVATE, MS_MOVE... in mount func.
I know that's because of old glibc headers...
But. may be it would be useful to write something like that:
#ifndef MS_REC /* May not be defined in older glibc headers */
#define MS_REC 16384
#endif
#ifndef MS_PRIVATE /* May not be defined in older glibc headers */
#define MS_PRIVATE (1<<18) /* change to private */
#endif
#ifndef MS_SLAVE /* May not be defined in older glibc headers */
#define MS_SLAVE (1<<19) /* change to slave */
#endif
#ifndef MS_SHARED /* May not be defined in older glibc headers */
#define MS_SHARED (1<<20) /* change to shared */
#endif
For those who didn't want or can update glibc.
Best regards,
Den
More information about the systemd-devel
mailing list