forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit976b386
committed
Currently, building on any platform that hasn't got getrusage()
requires manual editing of src/backend/port/getrusage.c, becauseits substitute version of getrusage is #if'd out.There is no good reason for that, because configure won't eveninclude the file into the Makefile unless the platform hasn't gotgetrusage. Furthermore, we only have one working substitute versionof getrusage --- the alleged HPUX syscall-based code doesn't work.(It causes a coredump because the syscall returns a struct rusagethat's much larger than the stub struct defined insrc/include/rusagestub.h.) The times()-based emulation works fineon HPUX, however.I propose, therefore, that getrusage.c should just unconditionallycompile the times-based version, and rely on configure to includethe file only if needed. This will be one less manual configurationstep on all platforms that need this code.Patch attached.Tom Lane.1 parent5aea406 commit976b386
1 file changed
+13
-20
lines changedLines changed: 13 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
| 1 | + | |
4 | 2 |
| |
5 | 3 |
| |
6 | 4 |
| |
7 | 5 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 |
| |
15 | 19 |
| |
16 | 20 |
| |
| |||
51 | 55 |
| |
52 | 56 |
| |
53 | 57 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - |
0 commit comments
Comments
(0)