### ImageMagick version

7.1.1-10

### Operating system

Linux

### Operating system, version and so on

Debian GNU/Linux 12 (bookworm)

### Description

Build on Linux (Debian Testing) fails with latest version of ImageMagick if configure is called with option `--without-threads`.
This seems to be a regression: Version `7.1.1-6`and earlier were not affected.

### Steps to Reproduce

    tar xvzf ImageMagick-7.1.1-10.tar.gz
    cd ImageMagick-7.1.1-10/
    ./configure --without-threads
    make

Build fails with following error:

```
MagickCore/distribute-cache.c: In function 'dpc_read':
MagickCore/distribute-cache.c:175:41: error: 'LENGTH_TYPE' undeclared (first use in this function)
  175 |     count=recv(file,(char *) message+i,(LENGTH_TYPE) MagickMin(length-i,
      |                                         ^~~~~~~~~~~
MagickCore/distribute-cache.c:175:41: note: each undeclared identifier is reported only once for each function it appears in
MagickCore/distribute-cache.c: In function 'DestroyDistributeCacheInfo':
MagickCore/distribute-cache.c:430:5: warning: implicit declaration of function 'CLOSE_SOCKET'; did you mean 'SOL_SOCKET'? [-Wimplicit-function-declaration]
  430 |     CLOSE_SOCKET(server_info->file);
      |     ^~~~~~~~~~~~
      |     SOL_SOCKET
MagickCore/distribute-cache.c: In function 'dpc_send':
MagickCore/distribute-cache.c:480:60: error: 'LENGTH_TYPE' undeclared (first use in this function)
  480 |     count=(MagickOffsetType) send(file,(char *) message+i,(LENGTH_TYPE)
      |                                                            ^~~~~~~~~~~
make[1]: *** [Makefile:8900: MagickCore/libMagickCore_7_Q16HDRI_la-distribute-cache.lo] Error 1
make[1]: Leaving directory '/home/heyho/devel/tmp/ImageMagick-7.1.1-10'
make: *** [Makefile:6236: all] Error 2
```

### Images

_No response_
Build fails with option --without-threads
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Build fails with option --without-threads
Issue date:

--- start body ---
### ImageMagick version

7.1.1-10

### Operating system

Linux

### Operating system, version and so on

Debian GNU/Linux 12 (bookworm)

### Description

Build on Linux (Debian Testing) fails with latest version of ImageMagick if configure is called with option `--without-threads`.
This seems to be a regression: Version `7.1.1-6`and earlier were not affected.

### Steps to Reproduce

    tar xvzf ImageMagick-7.1.1-10.tar.gz
    cd ImageMagick-7.1.1-10/
    ./configure --without-threads
    make

Build fails with following error:

```
MagickCore/distribute-cache.c: In function 'dpc_read':
MagickCore/distribute-cache.c:175:41: error: 'LENGTH_TYPE' undeclared (first use in this function)
  175 |     count=recv(file,(char *) message+i,(LENGTH_TYPE) MagickMin(length-i,
      |                                         ^~~~~~~~~~~
MagickCore/distribute-cache.c:175:41: note: each undeclared identifier is reported only once for each function it appears in
MagickCore/distribute-cache.c: In function 'DestroyDistributeCacheInfo':
MagickCore/distribute-cache.c:430:5: warning: implicit declaration of function 'CLOSE_SOCKET'; did you mean 'SOL_SOCKET'? [-Wimplicit-function-declaration]
  430 |     CLOSE_SOCKET(server_info->file);
      |     ^~~~~~~~~~~~
      |     SOL_SOCKET
MagickCore/distribute-cache.c: In function 'dpc_send':
MagickCore/distribute-cache.c:480:60: error: 'LENGTH_TYPE' undeclared (first use in this function)
  480 |     count=(MagickOffsetType) send(file,(char *) message+i,(LENGTH_TYPE)
      |                                                            ^~~~~~~~~~~
make[1]: *** [Makefile:8900: MagickCore/libMagickCore_7_Q16HDRI_la-distribute-cache.lo] Error 1
make[1]: Leaving directory '/home/heyho/devel/tmp/ImageMagick-7.1.1-10'
make: *** [Makefile:6236: all] Error 2
```

### Images

_No response_
--- end body ---
