Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb86515d

Browse files
committed
Give a useful error message if uuid-ossp is built without preconfiguration.
Before commitb8cc8f9, it was possible to build contrib/uuid-ossp withouthaving told configure you meant to; you could just cd into that directoryand "make". That no longer works because the code depends on configure tohave done header and library probes, but the ensuing error messages arenot so easy to interpret if you're not an old C hand. We've gotten acouple of complaints recently from people trying to do this the low-techway, so add an explicit #error directing the user to use --with-uuid.(In principle we might want to do something similar in the otheroptionally-built contrib modules; but I don't think any of the others haveever worked without preconfiguration, so there are no bad habits to breakpeople of.)Back-patch to 9.4 where the previous commit came in.Report:https://postgr.es/m/CAHeEsBf42AWTnk=1qJvFv+mYgRFm07Knsfuc86Ono8nRjf3tvQ@mail.gmail.comReport:https://postgr.es/m/CAKYdkBrUaZX+F6KpmzoHqMtiUqCtAW_w6Dgvr6F0WTiopuGxow@mail.gmail.com
1 parent4032ef1 commitb86515d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎contrib/uuid-ossp/uuid-ossp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
*/
3131
#defineuuid_hash bsd_uuid_hash
3232

33-
#ifdefHAVE_UUID_H
33+
#if defined(HAVE_UUID_H)
3434
#include<uuid.h>
35-
#endif
36-
#ifdefHAVE_OSSP_UUID_H
35+
#elif defined(HAVE_OSSP_UUID_H)
3736
#include<ossp/uuid.h>
38-
#endif
39-
#ifdefHAVE_UUID_UUID_H
37+
#elif defined(HAVE_UUID_UUID_H)
4038
#include<uuid/uuid.h>
39+
#else
40+
#error "please use configure's --with-uuid switch to select a UUID library"
4141
#endif
4242

4343
#undef uuid_hash

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp