Hi, On the new Darwin 10.8 (aka mountain lion), I had to add #ifdef __APPLE__ #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080) #define _XOPEN_SOURCE #endif #endif to the very beginning of contrib/uuid-ossp/uuid-ossp.c to get the build working with --with-ossp-uuid. I suggested something similar to the macports guys, but I guess it would be wise to get this upstream to the postgresql source? Cheers, Palle
Palle Girgensohn <girgen@pingpong.net> writes:
> Hi,
> On the new Darwin 10.8 (aka mountain lion), I had to add
> #ifdef __APPLE__
> #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080)
> #define _XOPEN_SOURCE
> #endif
> #endif
> to the very beginning of contrib/uuid-ossp/uuid-ossp.c to get the build
> working with --with-ossp-uuid.
This is not a postgres bug; this is an ossp bug, and that's the place
to fix it. If you try, I suspect you'll find that uuid.h doesn't
compile on ML, quite independently of anything Postgres.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера