Skip to content

Commit

Permalink
utimensat.c - Add missing ifdef guards
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed May 1, 2021
1 parent a24d822 commit 9e9e6bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utimensat.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
* Version 2.0.
*/

// MP support header
#include "MacportsLegacySupport.h"
#if __MP_LEGACY_SUPPORT_UTIMENSAT__

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/attr.h>
Expand Down Expand Up @@ -142,3 +146,5 @@ utimensat(int fd, const char *path, const struct timespec _times_in[2], int flag

return setattrlistat(fd, path, &a, &times_out, attrbuf_size, flags_out);
}

#endif /* __MP_LEGACY_SUPPORT_UTIMENSAT__ */

0 comments on commit 9e9e6bf

Please sign in to comment.