function addLCCSocketsLib(buildInfo)
% ADDLCCSOCKETSLIB adds LCC sockets library to buildInfo

%  Copyright 2014-2019 The MathWorks, Inc.

    if strcmp(computer,'PCWIN64')
        TCPIPLib = fullfile(matlabroot,...
            'sys', 'lcc64','lcc64', 'lib64', 'wsock32.lib');
    else
        TCPIPLib = fullfile(matlabroot,...
            'sys', 'lcc', 'lib', 'wsock32.lib');
    end

    [libPath, libName, libExt] = fileparts(TCPIPLib);
    priority = 1000;
    precompiled = true;
    linkOnly = true;
    buildInfo.addLinkObjects([libName libExt], libPath, ...
        priority, precompiled, linkOnly);
end

