compat.c 403 B

123456789101112131415161718192021
  1. #include "config.h"
  2. /* This file is just a placeholder so the library isn't empty */
  3. /* This function does strictly nothing. It's just here to avoid
  4. libcompat.a to be empty, which is illegal */
  5. int not_empty()
  6. {
  7. return 42;
  8. }
  9. #if !defined(HAVE_PIPE) && defined(HAVE__PIPE)
  10. #include <fcntl.h>
  11. static inline int pipe(int fds[2])
  12. {
  13. return _pipe(fds, 32768, O_NOINHERIT | O_BINARY);
  14. }
  15. #endif