Skip to content

Commit

Permalink
rtld.1: Improve _rtld_functrace example
Browse files Browse the repository at this point in the history
The man page was written at a time that gcc was "leaking" headers.
Now <unistd.h> is required for this example to compile.
  • Loading branch information
jrmarino committed Sep 10, 2015
1 parent 856bdec commit 6e86fc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libexec/rtld-elf/rtld.1
Expand Up @@ -302,6 +302,7 @@ To set up an
for printing out the functions as they are called, this code can be used:
.Bd -literal -offset indent
#include <string.h>
#include <unistd.h>

static int nl = 10;

Expand Down

0 comments on commit 6e86fc6

Please sign in to comment.