Page MenuHome GnuPG

w32: mbox-util: guard unistd.h include on Windows
Needs ReviewPublic

Authored by wrobelda on Aug 22 2022, 5:47 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

unistd.h is being included unconditionally, but should be guarded by the #ifdef HAVE_UNISTD_H

Test Plan
  1. confirm compiles on non-Windows platform
  2. confirm compiles on Windows platform

Diff Detail

Repository
rM GPGME
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

wrobelda created this revision.

Actually, there's plenty more locations where unistd.h is included unconditionally, all of which should likely embrace in guards like this.