Skip to content

Commit

Permalink
Problem fix: <unistd.h> is not properly defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed Aug 20, 2023
1 parent 0d579a4 commit 756e21a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sat/cnf/cnfUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@

ABC_NAMESPACE_IMPL_START

#ifdef _MSC_VER
#define unlink _unlink
#else
#include <unistd.h>
#endif

#ifdef ABC_USE_PTHREADS

#ifdef _WIN32
#include "../lib/pthread.h"
#else
#include <pthread.h>
#include <unistd.h>
#endif

#endif
Expand Down

0 comments on commit 756e21a

Please sign in to comment.