Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f94908d7 authored by Tobias C. Berner's avatar Tobias C. Berner

Don't set POSIX_SOURCE on FreeBSD.

/wrkdirs/usr/ports/deskutils/kdepim-runtime/work/kdepim-runtime-17.07.80/resources/imap/saslplugin/xoauth2plugin.c:178:5:
  error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
    snprintf(context->out_buf, context->out_buf_len, "user=%s\1auth=Bearer %s\1\1", authid, token);
    ^
/wrkdirs/usr/ports/deskutils/kdepim-runtime/work/kdepim-runtime-17.07.80/resources/imap/saslplugin/xoauth2plugin.c:178:5:
  note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 error generated.

Differential Revision: https://phabricator.kde.org/D6926
parent ed31f833
add_definitions(-D_POSIX_SOURCE)
if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
add_definitions(-D_POSIX_SOURCE)
endif()
if (WIN32)
add_definitions(-DWIN32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment