Follow-up Comment #5, bug #13790 (project mldonkey):

Another possibility: Ocaml ./configure

if test "$pthread_wanted" = "yes"; then
...
if ./hasgot -i pthread.h $pthread_link pthread_self; then
...
    if sh ./hasgot $pthread_link sigwait; then
      echo "sigwait() found"
      echo "#define HAS_SIGWAIT" >> s.h
    fi
...

HAS_SIGWAIT is only defined on platforms where pthread is used,
unfortunately no Ocaml define exists for HAS_PTHREAD, but 
HAS_SIGWAIT could additionally be used to determine whether
MLDonkey uses threads or not. See the attached patch.
    _______________________________________________________

Additional Item Attachment:

File name: freebsd_thread2.patch          Size:0 KB

<http://savannah.nongnu.org/bugs/download.php?item_id=13790&item_file_id=3277>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13790>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
Mldonkey-bugs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-bugs

Reply via email to