Skip to content

Commit

Permalink
DISPATCH-2368: chore(build): add missing #include <unistd.h> (#1738)
Browse files Browse the repository at this point in the history
Fixes compilation failures such as this one

```
/builddir/build/BUILD/qpid-dispatch-1.19.0/src/dispatch.c:412:26: error: implicit declaration of function ‘getpid’; did you mean ‘getpt’? [-Wimplicit-function-declaration]
  412 |     const pid_t my_pid = getpid();
      |                          ^~~~~~
      |                          getpt
```

from https://bugzilla.redhat.com/show_bug.cgi?id=2245601
  • Loading branch information
jiridanek authored Jan 13, 2025
1 parent 3b40cdb commit 2fd61a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <inttypes.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>

/**
* Private Function Prototypes
Expand Down

0 comments on commit 2fd61a3

Please sign in to comment.